From a534eb8d61d5b38f912e95bbcbaaa1d8b2fa84f9 Mon Sep 17 00:00:00 2001 From: pythongosssss <125205205+pythongosssss@users.noreply.github.com> Date: Fri, 21 Jul 2023 12:34:42 +0100 Subject: [PATCH] Make async callback handle async --- js/presetText.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;