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