Skip to content

Commit

Permalink
feat(dcellar-web-ui): fix sub virtual path
Browse files Browse the repository at this point in the history
  • Loading branch information
aiden-cao committed Mar 22, 2024
1 parent 8e62207 commit 36454c8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export const DetailFolderOperation = memo<DetailFolderOperationProps>(
useMount(async () => {
const list = await getFolderObjectList();
if (!list) return;
setFolderExist(list.Objects[0].ObjectInfo.ObjectName.endsWith('/'));
setFolderExist(list.Objects[0]?.ObjectInfo.ObjectName.endsWith('/') || false);
});

useUnmount(() => dispatch(setObjectEditTagsData([DEFAULT_TAG])));
Expand Down

0 comments on commit 36454c8

Please sign in to comment.