Browse Source

Merge pull request #1622 from yanCode/fix/single-mask-import

fix: allow to import a single mask
Yifei Zhang 1 year ago
parent
commit
8d7f3bd215
1 changed files with 5 additions and 0 deletions
  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 {}
     });