Skip to content

Commit f637e61

Browse files
committed
fix: clone directive object when adding to ngxDirectives
1 parent c4bb484 commit f637e61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/components/NgxConfigEditor/directive/DirectiveEditor.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ onMounted(() => {
2222
})
2323
2424
function addDirective(directive: NgxDirective) {
25-
ngxDirectives.value.push(directive)
25+
ngxDirectives.value.push({ ...directive })
2626
}
2727
2828
function removeDirective(index: number) {

0 commit comments

Comments
 (0)