8000 fix: refresh renderer on nested property update · romhml/compodium@3fbe84f · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 3fbe84f

Browse files
committed
fix: refresh renderer on nested property update
1 parent f9b5ac2 commit 3fbe84f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

devtools/app/components/inputs/ObjectInput.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const attrs = computed(() => {
2323
:default-value="attr.default"
2424
@update:model-value="(value: any) => {
2525
if (!modelValue) modelValue ||= {}
26-
else modelValue[attr.name] = value
26+
else modelValue = { ...modelValue, [attr.name]: value }
2727
}"
2828
/>
2929
</CollapseContainer>

0 commit comments

Comments
 (0)
0