-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
I use
requestConfig: {
endpoint: window.location.origin + "/sparql",
args: (yasqe) => {
return [{ name: "model", value: $('#model').val() }];
}
}
to dynamically set the argument model before executing a query.
When a new tab is created the error
Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.
occurs due to the following line:
Yasgui/packages/yasgui/src/Tab.ts
Line 323 in 919d197
| if (Array.isArray(objValue) || Array.isArray(srcValue)) { |
The exception occurs because srcValue is the value returned by the above args function while objValue is the function itself.
Maybe the checks must be combined by && instead of ||?
Metadata
Metadata
Assignees
Labels
No labels