We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36c9085 commit 57e34bbCopy full SHA for 57e34bb
client/packages/lowcoder/src/pages/editor/bottom/BottomSidebar.tsx
@@ -225,7 +225,15 @@ export function BottomSidebar(props: BottomSidebarProps) {
225
refTreeComp.children.items.dispatch(pushAction);
226
});
227
}
228
- }, [itemsNotInTree, refTreeComp.children.items]);
+ }, [JSON.stringify(itemsNotInTree)]);
229
+
230
+ useEffect(() => {
231
+ node?.items.forEach((item, idx) => {
232
+ if(!Boolean(item.id)) {
233
+ node?.deleteItem(idx);
234
+ }
235
+ })
236
+ }, [node?.items])
237
238
return (
239
<Contain style={props.style}>
0 commit comments