mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 09:28:31 +00:00
Shallow clone objects while resolving references
This commit is contained in:
parent
65b5735b74
commit
2dedcae20a
1 changed files with 3 additions and 0 deletions
|
|
@ -31,6 +31,9 @@ export function resolve(data, state) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function resolveReferences(object, state, defaultValue, customObjects = {}, withError = false) {
|
export function resolveReferences(object, state, defaultValue, customObjects = {}, withError = false) {
|
||||||
|
|
||||||
|
object = _.clone(object)
|
||||||
|
|
||||||
const objectType = typeof object;
|
const objectType = typeof object;
|
||||||
let error;
|
let error;
|
||||||
switch (objectType) {
|
switch (objectType) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue