Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit57e34bb

Browse files
Fix multiple queries creation on duplicate query
1 parent36c9085 commit57e34bb

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

‎client/packages/lowcoder/src/pages/editor/bottom/BottomSidebar.tsx‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,15 @@ export function BottomSidebar(props: BottomSidebarProps) {
225225
refTreeComp.children.items.dispatch(pushAction);
226226
});
227227
}
228-
},[itemsNotInTree,refTreeComp.children.items]);
228+
},[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])
229237

230238
return(
231239
<Containstyle={props.style}>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp