Browse Source

fix(app): close delete workspace dialog immediately

Adam 1 month ago
parent
commit
e5fe50f7da
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/app/src/pages/layout.tsx

+ 2 - 2
packages/app/src/pages/layout.tsx

@@ -1260,9 +1260,9 @@ export default function Layout(props: ParentProps) {
         })
         })
     })
     })
 
 
-    const handleDelete = async () => {
-      await deleteWorkspace(props.directory)
+    const handleDelete = () => {
       dialog.close()
       dialog.close()
+      void deleteWorkspace(props.directory)
     }
     }
 
 
     const description = () => {
     const description = () => {