diff --git a/js/presetText.js b/js/presetText.js index 6a5490a..841ddfa 100644 --- a/js/presetText.js +++ b/js/presetText.js @@ -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;