From 2dedcae20affeb9dac2f0e5e36eb62fac944d998 Mon Sep 17 00:00:00 2001 From: navaneeth Date: Sat, 23 Oct 2021 00:41:22 +0530 Subject: [PATCH] Shallow clone objects while resolving references --- frontend/src/_helpers/utils.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/_helpers/utils.js b/frontend/src/_helpers/utils.js index e26e88b8a7..fcf96b7f33 100644 --- a/frontend/src/_helpers/utils.js +++ b/frontend/src/_helpers/utils.js @@ -31,6 +31,9 @@ export function resolve(data, state) { } export function resolveReferences(object, state, defaultValue, customObjects = {}, withError = false) { + + object = _.clone(object) + const objectType = typeof object; let error; switch (objectType) {