소스 검색

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