@flowgram.ai/free-layout-core 0.4.18 → 0.4.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -3058,7 +3058,7 @@ var WorkflowDragService = class {
|
|
|
3058
3058
|
return;
|
|
3059
3059
|
}
|
|
3060
3060
|
const sourceContainer = nodes[0]?.parent;
|
|
3061
|
-
if (!sourceContainer) {
|
|
3061
|
+
if (!sourceContainer || sourceContainer.flowNodeType === import_document10.FlowNodeBaseType.ROOT) {
|
|
3062
3062
|
return;
|
|
3063
3063
|
}
|
|
3064
3064
|
const valid = nodes.every((node) => node?.parent === sourceContainer);
|