diff --git a/Services/client/src/stores/storage.ts b/Services/client/src/stores/storage.ts index 2d06fd1..9e1367c 100644 --- a/Services/client/src/stores/storage.ts +++ b/Services/client/src/stores/storage.ts @@ -281,9 +281,9 @@ const useStorage = defineStore('storageStore', () => { } if ( - currentInfo.path !== path && - currentInfo.path.length > path.length && - currentInfo.path.startsWith(path) + currentInfo.path !== consistantPath(arr) && + currentInfo.path.length > consistantPath(arr).length && + currentInfo.path.startsWith(consistantPath(arr)) ) { error.title = 'แจ้งเตือน' error.msg = 'ข้อมูลที่คุณกำลังเข้าถึงอยู่ถูกลบ'