瀏覽代碼

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()