Skip to content

Commit 3ce38ff

Browse files
authored
Fix the app crash when deleting a selected root folder. (#468)
Signed-off-by: AAJELLAL <[email protected]>
1 parent 6d39ac7 commit 3ce38ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/toolbars/content-toolbar.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ const ContentToolbar = (props) => {
141141
handleLastError(error.message);
142142
});
143143
},
144-
[selectedDirectory.elementUuid, handleCloseDialog, handleLastError]
144+
[selectedDirectory?.elementUuid, handleCloseDialog, handleLastError]
145145
);
146146

147147
const items = useMemo(() => {

0 commit comments

Comments
 (0)