Make async callback handle async
This commit is contained in:
+1
-1
@@ -207,7 +207,7 @@ app.registerExtension({
|
||||
called = true;
|
||||
|
||||
for (const cb of callbacks) {
|
||||
widget.value = cb(workflowNode, widgetIndex);
|
||||
widget.value = await cb(workflowNode, widgetIndex);
|
||||
}
|
||||
|
||||
const prompt = widget.value;
|
||||
|
||||
Reference in New Issue
Block a user