pratik227 / quasar-qgrid

QGrid is a Quasar App Extension. It allows you to filter data for each column, Drag and Drop Rows and also allows you to filter data using header filters.
https://next-quasar-qgrid.netlify.app/
MIT License
112 stars 92 forks source link

filter type select failed #99

Closed ifitllc closed 1 year ago

ifitllc commented 1 year ago

When the value has null, and the column filter type is defined as select, it will fail:

Uncaught (in promise) TypeError: Cannot read properties of null (reading 'toString') at QGrid.vue:520:28 at Array.filter () at Proxy.getColumnOptions (QGrid.vue:520:28) at QGrid.vue:101:61 at renderFnWithContext (runtime-core.esm-bundler.js:868:19) at hSlot (quasar.esm.js:2034:7) at Proxy. (quasar.esm.js:31583:12) at renderComponentRoot (runtime-core.esm-bundler.js:914:44) at ReactiveEffect.componentUpdateFn [as fn] (runtime-core.esm-bundler.js:5720:34) at ReactiveEffect.run (reactivity.esm-bundler.js:190:25)

pratik227 commented 1 year ago

Hi @ifitllc,

I will check.

pratik227 commented 1 year ago

Hi @ifitllc,

I think the issue is with the field. I think the field value that you have given is not there in the data.

pratik227 commented 1 year ago

Closing this issue bcz of inactivity