mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 17:08:34 +00:00
fixes: multi-components cloning or copy/paste have same name (#7761)
This commit is contained in:
parent
a74eb7eff1
commit
b55115ef15
1 changed files with 4 additions and 1 deletions
|
|
@ -1484,7 +1484,10 @@ export const addComponents = (
|
|||
|
||||
pastedComponents.forEach((component) => {
|
||||
const newComponentId = uuidv4();
|
||||
const componentName = computeComponentName(component.component.component, appDefinition.pages[pageId].components);
|
||||
const componentName = computeComponentName(component.component.component, {
|
||||
...appDefinition.pages[pageId].components,
|
||||
...finalComponents,
|
||||
});
|
||||
|
||||
const isParentAlsoCopied = component.component.parent && componentMap[component.component.parent];
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue