Ver Fonte

Fix: debounce of dataset creation (#1237)

KVOJJJin há 1 ano atrás
pai
commit
fd3d43cae1
1 ficheiros alterados com 3 adições e 0 exclusões
  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()