YousufFFFF commented on code in PR #37800:
URL: https://github.com/apache/superset/pull/37800#discussion_r2781069091


##########
superset-frontend/src/explore/components/DatasourcePanel/DatasourceItems.tsx:
##########
@@ -105,6 +105,14 @@ export const DatasourceItems = ({
     ),
   );
 
+  useEffect(() => {
+    setCollapsedFolderIds(
+      new Set(
+        folders.filter(folder => folder.isCollapsed).map(folder => folder.id),
+      ),
+    );
+  }, [folders]);

Review Comment:
   Good catch, I agree. The initial implementation was resetting 
user-controlled collapse state on every folders update. I’ve updated the logic 
to initialize the collapsed state only once from folders, preserving subsequent 
user interactions while keeping the arrow state in sync.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to