vue-query-builder icon indicating copy to clipboard operation
vue-query-builder copied to clipboard

vue-query-builder TypeError: Cannot read property 'push' of undefined

Open LoopLife opened this issue 4 years ago • 2 comments

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)

LoopLife avatar Sep 07 '20 11:09 LoopLife

I had same issue try setting the initial state for v-model eg.

query: {
    logicalOperator: 'all',
    children: [],
},

joseph-sm avatar Oct 08 '20 06:10 joseph-sm

Duplicate of #57

sadortun avatar Mar 03 '21 20:03 sadortun