Skip to content

Commit 6bb7b79

Browse files
BloggerBustjayanth-kumar-morem
authored andcommitted
fix(chat): restore AI responses by passing correct id to ChatWidget
The `id` prop was not being passed to the ChatWidget and was accidentally missplaced in the `onChange` causing an assignment to an undeclared identifier. The error from the `onChange` event handler prevented the AI from responding to user prompts..
1 parent 6007d59 commit 6bb7b79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/components/DynamicComponents.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,8 @@ const MemoizedComponent = memo(
275275
value={component.value || component.state || { messages: [] }}
276276
onChange={(value) => {
277277
handleUpdate(componentId, value);
278-
id = { componentId };
279278
}}
279+
id={componentId}
280280
/>
281281
);
282282

0 commit comments

Comments
 (0)