From 14716000491cb87270917287b9fdeccce0e0db42 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Wed, 13 Dec 2023 10:24:30 +0700 Subject: [PATCH] fix: wrong path on delete alert --- Services/client/src/stores/storage.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 = 'ข้อมูลที่คุณกำลังเข้าถึงอยู่ถูกลบ'