From eb6fedaef86823cc404457b990da806d0b953181 Mon Sep 17 00:00:00 2001 From: hoping <14806317+htmambo@users.noreply.github.com> Date: Thu, 25 Jan 2024 23:17:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=87=8D=E5=90=8E=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E7=8E=B0=E6=9C=89=E7=9A=84=E9=9D=A2=E5=85=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/store/mask.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/store/mask.ts b/app/store/mask.ts index e13afe665d0..36349284b52 100644 --- a/app/store/mask.ts +++ b/app/store/mask.ts @@ -50,7 +50,7 @@ export const useMaskStore = createPersistStore( if (existingMask.name === mask?.name && JSON.stringify(existingMask.context) === JSON.stringify(mask?.context)) { console.log("A mask with the same name and context already exists."); - return mask; + return existingMask; } } const id = nanoid();