Prechádzať zdrojové kódy

fix: allow to import a single mask

ShengYan, Zhang 1 rok pred
rodič
commit
f6c268dc1e
1 zmenil súbory, kde vykonal 5 pridanie a 0 odobranie
  1. 5 0
      app/components/mask.tsx

+ 5 - 0
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 {}
     });