-
Notifications
You must be signed in to change notification settings - Fork 10
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:
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 ||?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels