Jelajahi Sumber

Fix: debounce of dataset creation (#1237)

KVOJJJin 1 tahun lalu
induk
melakukan
fd3d43cae1
1 mengubah file dengan 3 tambahan dan 0 penghapusan
  1. 3 0
      web/app/components/datasets/create/step-two/index.tsx

+ 3 - 0
web/app/components/datasets/create/step-two/index.tsx

@@ -319,6 +319,9 @@ const StepTwo = ({
   }
 
   const createHandle = async () => {
+    if (isCreating)
+      return
+    setIsCreating(true)
     try {
       let res
       const params = getCreationParams()