QueryBuilder updateFilters.add method returns error
- Dominant language
- Rust
- Stars
- 20.8k
- Forks
- 2.1k
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 181
Description
**Describe the bug**
When using the `QueryBuilder` component and using the `updateFilters.add()` method, I get the following error:
```
cubejs-client-core.esm.js:1302 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'split')
```
I believe I am passing the correct args to the function by looking at the typing but there is nothing in the docs about this method to confirm.
```javascript
updateFilters.add({
member: 'LearningCampaigns.id',
operator: 'equals',
values: ['573']
});
```
It's also worth noting this filter (and query) that I am using is working fine in the cube-playground.
Thanks in advance 🙏
**Minimally reproducible Cube Schema**
```javascript
cube(`LearningCampaigns`, {
sql: `SELECT * FROM `,
joins: {},
measures: {
count: {
type: `count`,
drillMembers: [id],
},
},
dimensions: {
id: {
sql: `id`,
type: `number`,
primaryKey: true,
shown: true,
},
name: {
sql: `name`,
type: `string`,
},
},
dataSource: `default`,
});
```
**Version:**
@cubejs-client/core: 0.34.9
Contributor guide
Assessment
This issue has not been assessed yet.