@xuda.io/xuda-dbs-plugin-xuda 1.0.176 → 1.0.177

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/studio.mjs +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-dbs-plugin-xuda",
3
- "version": "1.0.176",
3
+ "version": "1.0.177",
4
4
  "description": "Xuda Database Socket for Xuda's proprietary structure powered by CouchDB",
5
5
  "scripts": {
6
6
  "pub": "npm version patch --force && npm publish --access public"
package/studio.mjs CHANGED
@@ -295,9 +295,9 @@ const get_opt = function (e, table_obj) {
295
295
  }
296
296
  }
297
297
 
298
- if (e.filterModel) {
298
+ if (e.filterModel && JSON.parse(e.filterModel).length) {
299
299
  debugger;
300
- for (const [key, val] of Object.entries(e.filterModel)) {
300
+ for (const [key, val] of Object.entries(JSON.parse(e.filterModel))) {
301
301
  var field_name = key;
302
302
  var condition = "$and";
303
303
  const make_selector = function (val) {