We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccaaab8 commit f9eb82fCopy full SHA for f9eb82f
packages/compass-components/src/components/drawer-portal.tsx
@@ -301,7 +301,8 @@ export const DrawerAnchor: React.FunctionComponent = ({ children }) => {
301
}
302
303
setAssistantNodes((oldNodes) => {
304
- for (const id of Object.keys({ ...nodes, oldNodes })) {
+ // account for removed nodes by checking all keys of both old and new
305
+ for (const id of Object.keys({ ...oldNodes, nodes })) {
306
if (nodes[id] !== oldNodes[id]) {
307
return nodes;
308
0 commit comments