vue-query-builder
vue-query-builder copied to clipboard
vue-query-builder TypeError: Cannot read property 'push' of undefined
a demo with vue-query-builder
- write vue-query-builder into el-drawer
- when click method of add,first time,it can be opened normally
- when i open it seond time,TypeError: Cannot read property 'push' of undefined
TypeError: Cannot read property 'push' of undefined at VueComponent.addRule (VueQueryBuilder.common.js?9a97:4618) at invokeWithErrorHandling (vue.runtime.esm.js?2b0e:1854) at HTMLButtonElement.invoker (vue.runtime.esm.js?2b0e:2179) at HTMLButtonElement.original._wrapper (vue.runtime.esm.js?2b0e:6917)
I had same issue try setting the initial state for v-model
eg.
query: {
logicalOperator: 'all',
children: [],
},
Duplicate of #57