Преглед на файлове

Fix: debounce of dataset creation (#1237)

KVOJJJin преди 1 година
родител
ревизия
fd3d43cae1
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  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()