Ensure bindings are not mutated when enriching with custom icons
This commit is contained in:
parent
20feb35854
commit
76394d1673
|
@ -15,8 +15,9 @@
|
||||||
export let isTestModal
|
export let isTestModal
|
||||||
|
|
||||||
$: parsedBindings = bindings.map(binding => {
|
$: parsedBindings = bindings.map(binding => {
|
||||||
binding.icon = "ShareAndroid"
|
let clone = Object.assign({}, binding)
|
||||||
return binding
|
clone.icon = "ShareAndroid"
|
||||||
|
return clone
|
||||||
})
|
})
|
||||||
|
|
||||||
let table
|
let table
|
||||||
|
|
|
@ -21,8 +21,9 @@
|
||||||
export let isTestModal
|
export let isTestModal
|
||||||
|
|
||||||
$: parsedBindings = bindings.map(binding => {
|
$: parsedBindings = bindings.map(binding => {
|
||||||
binding.icon = "ShareAndroid"
|
let clone = Object.assign({}, binding)
|
||||||
return binding
|
clone.icon = "ShareAndroid"
|
||||||
|
return clone
|
||||||
})
|
})
|
||||||
|
|
||||||
function schemaHasOptions(schema) {
|
function schemaHasOptions(schema) {
|
||||||
|
|
Loading…
Reference in New Issue