Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

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

Open
LoopLife opened this issue Sep 7, 2020 · 2 comments
Open

Comments

@LoopLife
Copy link

LoopLife commented Sep 7, 2020

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)

@joseph-sm
Copy link

joseph-sm commented Oct 8, 2020

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

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

@sadortun
Copy link

sadortun commented Mar 3, 2021

Duplicate of #57

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants