From b961a371b5ee7857360d37ff202de86eecf60e64 Mon Sep 17 00:00:00 2001 From: amhsirak Date: Sun, 26 Jan 2025 23:58:19 +0530 Subject: [PATCH] fix: format --- src/components/run/RunSettings.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/components/run/RunSettings.tsx b/src/components/run/RunSettings.tsx index 1f40f60e..caa20e9b 100644 --- a/src/components/run/RunSettings.tsx +++ b/src/components/run/RunSettings.tsx @@ -29,16 +29,13 @@ export const RunSettingsModal = ({ isOpen, handleStart, handleClose, isTask, par const [showInterpreterSettings, setShowInterpreterSettings] = useState(false); - // Run immediately without modal if settings don't need to be shown useEffect(() => { if (!showInterpreterSettings) { - handleStart(settings); // Start the run + handleStart(settings); } - // Ensure this runs only when the component mounts or settings change // eslint-disable-next-line react-hooks/exhaustive-deps }, [showInterpreterSettings]); - // Do not render the modal if settings are not shown if (!showInterpreterSettings) { return null; }