I added 3 layers on the diagram then I tried to use this codes
Note : I'm using 20.4.42 version
when there is multiple object every thing is ok but when there is only one object in the layer error will raise
core.mjs:7629 ERROR TypeError: Cannot read properties of undefined (reading 'parentId')
in the picture the line 38050 zIndexTable size is 1 and i_4 equals to 1 so its obvious target variable will be undefined, im using
The issue is reflected at our end. We will validate and update you with more details on Feb 21, 2023.
Reported Issue : Send to back command not working when there is single node in layer
We can reproduce the issue and confirmed this as a defect. We have logged a defect report for this issue. We will fix this issue and provide the patch on March 07th, 2023 weekly patch release.
We have fixed the issue and provided custom package below. However, we will include the fix for the issue in our upcoming weekly release which is scheduled to release on March 14th, 2023.
We have fixed the reported issue and included it in our latest patch release which is rolled out successfully. Please upgrade to the latest version (v20.4.54) packages of the diagram to resolve this issue.