mirror of
https://github.com/Dictionarry-Hub/profilarr.git
synced 2026-01-25 20:32:26 +01:00
fix(regex): Remove regex101 link when cloning a regex pattern
This commit is contained in:
committed by
Sam Chau
parent
fe768935f8
commit
3571b35c5f
@@ -46,7 +46,12 @@ function RegexManager() {
|
||||
};
|
||||
|
||||
const handleCloneRegex = (regex) => {
|
||||
const clonedRegex = { ...regex, id: 0, name: `${regex.name} [COPY]` };
|
||||
const clonedRegex = {
|
||||
...regex,
|
||||
id: 0,
|
||||
name: `${regex.name} [COPY]`,
|
||||
regex101Link: '', // Remove the regex101 link when cloning
|
||||
};
|
||||
handleOpenModal(clonedRegex);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user