From 07b50e7bf076153d71b7ba478048ede651bdab27 Mon Sep 17 00:00:00 2001 From: sockmaster27 <61235930+sockmaster27@users.noreply.github.com> Date: Wed, 21 Aug 2024 10:17:44 +0200 Subject: [PATCH] fix: 'cannot set userConfiguration on undefined' error message --- server/src/engine/flix.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/src/engine/flix.ts b/server/src/engine/flix.ts index a8645ce..d905029 100644 --- a/server/src/engine/flix.ts +++ b/server/src/engine/flix.ts @@ -65,7 +65,9 @@ export function getExtensionVersion() { } export function updateUserConfiguration(userConfiguration: UserConfiguration) { - startEngineInput.userConfiguration = userConfiguration + if (startEngineInput !== undefined) { + startEngineInput.userConfiguration = userConfiguration + } } export async function start(input: StartEngineInput) {