Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hugoattal committed Feb 4, 2024
1 parent 791f115 commit a73770e
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,23 @@ const comp = computed(() => {
return HstJson
}
})
const model = computed({
get: () => {
return props.variant.state[props.item]
},
set: (value) => {
// eslint-disable-next-line vue/no-mutating-props
props.variant.state[props.item] = value
},
})
</script>

<template>
<component
:is="comp"
v-if="comp"
v-model="variant.state[props.item]"
v-model="model"
class="histoire-controls-component-prop-item"
:title="props.item"
/>
Expand Down

0 comments on commit a73770e

Please sign in to comment.