From f6c268dc1e3afad9448801f47bcec8b4cc81ef91 Mon Sep 17 00:00:00 2001 From: "ShengYan, Zhang" Date: Fri, 19 May 2023 10:39:34 +0800 Subject: [PATCH] fix: allow to import a single mask --- app/components/mask.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/components/mask.tsx b/app/components/mask.tsx index adb5d448..8aec5037 100644 --- a/app/components/mask.tsx +++ b/app/components/mask.tsx @@ -256,6 +256,11 @@ export function MaskPage() { maskStore.create(mask); } } + return; + } + //if the content is a single mask. + if (importMasks.name) { + maskStore.create(importMasks); } } catch {} });