diff --git a/apps/dcellar-web-ui/src/modules/object/components/DetailFolderOperation.tsx b/apps/dcellar-web-ui/src/modules/object/components/DetailFolderOperation.tsx index 59806d04..7c66d777 100644 --- a/apps/dcellar-web-ui/src/modules/object/components/DetailFolderOperation.tsx +++ b/apps/dcellar-web-ui/src/modules/object/components/DetailFolderOperation.tsx @@ -106,7 +106,7 @@ export const DetailFolderOperation = memo( 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])));