From 3faca1584190c033820d64397df616b74e9cbce1 Mon Sep 17 00:00:00 2001 From: Tim Pietrusky Date: Tue, 16 Feb 2021 22:17:16 +0100 Subject: [PATCH] fix(module): Clone the props instead of using a reference. (#548) --- src/application/worker/store/modules/modules.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/application/worker/store/modules/modules.js b/src/application/worker/store/modules/modules.js index 08885c4e4..e4be765e4 100644 --- a/src/application/worker/store/modules/modules.js +++ b/src/application/worker/store/modules/modules.js @@ -178,7 +178,7 @@ const actions = { if (!existingModule) { module.$id = uuidv4(); module.$moduleName = moduleName; - module.$props = { ...props }; + module.$props = JSON.parse(JSON.stringify(props)); module.props = {};