diff --git a/src/frontend/src/modals/formModal/index.tsx b/src/frontend/src/modals/formModal/index.tsx index 134536ac3..5ed82d0d7 100644 --- a/src/frontend/src/modals/formModal/index.tsx +++ b/src/frontend/src/modals/formModal/index.tsx @@ -401,74 +401,82 @@ export default function FormModal({
-
- - - Input Variables - -
- - Chat +
+ + + Input Variables + +
+ + Chat Input
{Object.keys(tabsState[id.current].formKeysData.input_keys).map( (i, k) => (
- - -
- - {i} - - -
- + +
+ + {i} + + +
{ + event.stopPropagation(); + }} + > + handleOnCheckedChange(value, i) } size="small" disabled={false} - />
-
-
- -
- {tabsState[id.current].formKeysData.handle_keys.some( - (t) => t === i - ) ? ( -
- Handle + />
- ) : ( - <> - )} - -
-
- - + ].formKeysData.handle_keys.some( + (t) => t === i + ) + ) + setTabsState((old) => { + let newTabsState = _.cloneDeep(old); + newTabsState[ + id.current + ].formKeysData.input_keys[i] = + e.target.value; + return newTabsState; + }); + }} + disabled={chatKey === i} + placeholder="Enter text..." + > +
+ +
) )}