Skip to content

Commit 3583df9

Browse files
committed
ToDo: handle objects that contain method or set a type for method
1 parent ff302f5 commit 3583df9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/client.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@ async function send(conversation, action) {
2929

3030
let valueType = action.element.getAttribute('openai-value-type');
3131
content = parseContent(content, valueType)
32-
let elements = queryElements({ element: action.element, prefix: 'openai' });
33-
3432

33+
let elements = queryElements({ element: action.element, prefix: 'openai' });
3534

3635
let type = action.element.getAttribute('openai-type');
3736
if (type === 'form') {
@@ -53,6 +52,7 @@ async function send(conversation, action) {
5352
}
5453
}
5554

55+
// ToDo: handle objects that contain method or set a type for method
5656
// const object = extractObjectFromCode(content);
5757
// if (object) {
5858
// const { component, action, data } = object;

0 commit comments

Comments
 (0)