From 0639980174e5d562743660c8113b988543e839e0 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Thu, 2 Jan 2025 22:09:25 +0200 Subject: [PATCH] Pass first parameter from trigger call on to the resolved promise --- src/headless/shared/api/events.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/headless/shared/api/events.js b/src/headless/shared/api/events.js index 682645142e..14c7bf2743 100644 --- a/src/headless/shared/api/events.js +++ b/src/headless/shared/api/events.js @@ -34,7 +34,7 @@ export default { } const promise = _converse.promises[name]; if (promise !== undefined) { - promise.resolve(); + promise.resolve(arguments[1]); } },