Skip to content

Commit

Permalink
chore: fix auto-flow issue (#5024)
Browse files Browse the repository at this point in the history
fix auto-flow issue
  • Loading branch information
timarney authored Jan 23, 2025
1 parent 4c9bcf2 commit 11df4fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -319,11 +319,11 @@ const ControlledTree: ForwardRefRenderFunction<unknown, TreeDataProviderProps> =
expandedItems,
getTreeData,
getConfirmMovePromise,
setOpenConfirmMoveDialog,
autoFlowAll
setOpenConfirmMoveDialog
);

updateGroupsLayout();
autoFlowAll();
forceRefresh();
}}
onFocusItem={(item) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,7 @@ export const handleOnDrop = async (
expandedItems: TreeItemIndex[],
getTreeData: () => TreeItems,
getPromise: () => Promise<boolean>,
setOpenDialog: (value: boolean) => void,
autoFlowAll: () => void
setOpenDialog: (value: boolean) => void
) => {
// Current state of the tree in Groups format
let currentGroups = getGroups() as GroupsType;
Expand Down Expand Up @@ -217,10 +216,6 @@ export const handleOnDrop = async (

replaceGroups(newGroups);
setSelectedItems(selectedItems);

// Temporary solution: If no custom rules are present, autoFlow all items
autoFlowAll();

return;
}

Expand Down

0 comments on commit 11df4fc

Please sign in to comment.