From 9b477b88b0d191ec84b8e24dc303902f3c26ff6d Mon Sep 17 00:00:00 2001 From: Fabien Amarger <881739+Murloc6@users.noreply.github.com> Date: Wed, 13 Mar 2024 17:02:27 +0100 Subject: [PATCH] fix: Destructure yasqe config at the end to use the surchaged config The other way did not let use the yasqe config as new Yasgui(yasguiAnchor, { yasqe: {createShareableLink}, }) --- packages/yasgui/src/Tab.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/yasgui/src/Tab.ts b/packages/yasgui/src/Tab.ts index 4ae08a51..6198a55d 100644 --- a/packages/yasgui/src/Tab.ts +++ b/packages/yasgui/src/Tab.ts @@ -298,7 +298,6 @@ export class Tab extends EventEmitter { private initYasqe() { const yasqeConf: Partial = { - ...this.yasgui.config.yasqe, value: this.persistentJson.yasqe.value, editorHeight: this.persistentJson.yasqe.editorHeight ? this.persistentJson.yasqe.editorHeight : undefined, persistenceId: null, //yasgui handles persistent storing @@ -337,6 +336,7 @@ export class Tab extends EventEmitter { } return processedReqConfig as PlainRequestConfig; }, + ...this.yasgui.config.yasqe, }; if (!yasqeConf.hintConfig) { yasqeConf.hintConfig = {};