Skip to content

Commit 4ff237b

Browse files
committed
fix: skip refineInput if inputs not filled
1 parent 4290a43 commit 4ff237b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/frontend/src/pages/AiBuilder/components/AIFormModalContent.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ export const AIFormModalContent = ({
8282
}
8383

8484
useEffect(() => {
85-
refineFormInput(triggerValue, actionsValue)
85+
if (triggerValue?.trim() && actionsValue?.trim()) {
86+
refineFormInput(triggerValue, actionsValue)
87+
}
8688
}, [triggerValue, actionsValue, refineFormInput])
8789

8890
const isCreate = type === 'create'

0 commit comments

Comments
 (0)