Ensure bindings are not mutated when enriching with custom icons

This commit is contained in:
Dean 2022-10-21 15:33:56 +01:00
parent 557499a4d7
commit 7bfd07ac6c
2 changed files with 6 additions and 4 deletions

View File

@ -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

View File

@ -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) {