Ver código fonte

fix: #1147 edit mask after creating a new mask

Yidadaa 1 ano atrás
pai
commit
b2fc7d476a
1 arquivos alterados com 4 adições e 1 exclusões
  1. 4 1
      app/components/mask.tsx

+ 4 - 1
app/components/mask.tsx

@@ -296,7 +296,10 @@ export function MaskPage() {
                 icon={<AddIcon />}
                 text={Locale.Mask.Page.Create}
                 bordered
-                onClick={() => maskStore.create()}
+                onClick={() => {
+                  const createdMask = maskStore.create();
+                  setEditingMaskId(createdMask.id);
+                }}
               />
             </div>
           </div>