From fd3d43cae14a336f959b7010981b9e8476f7d82c Mon Sep 17 00:00:00 2001 From: KVOJJJin Date: Wed, 27 Sep 2023 10:31:27 +0800 Subject: [PATCH] Fix: debounce of dataset creation (#1237) --- web/app/components/datasets/create/step-two/index.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/app/components/datasets/create/step-two/index.tsx b/web/app/components/datasets/create/step-two/index.tsx index 99e7213373..2d1bda399e 100644 --- a/web/app/components/datasets/create/step-two/index.tsx +++ b/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()