Skip to content

Commit c75bdc6

Browse files
committed
account for deleted stuff
1 parent 280f60f commit c75bdc6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/compass-components/src/components/drawer-portal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,15 +291,15 @@ export const DrawerAnchor: React.FunctionComponent = ({ children }) => {
291291
}
292292

293293
setAssistantNodes((oldNodes) => {
294-
for (const id of Object.keys(nodes)) {
294+
for (const id of Object.keys({ ...nodes, oldNodes })) {
295295
if (nodes[id] !== oldNodes[id]) {
296296
return nodes;
297297
}
298298
}
299299
return oldNodes;
300300
});
301301
},
302-
[toolbarData, assistantNodes]
302+
[toolbarData]
303303
);
304304

305305
return (

0 commit comments

Comments
 (0)