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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/studio.mjs +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-dbs-plugin-xuda",
3
- "version": "1.0.175",
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,8 +295,9 @@ const get_opt = function (e, table_obj) {
295
295
  }
296
296
  }
297
297
 
298
- if (e.filterModel) {
299
- for (const [key, val] of Object.entries(e.filterModel)) {
298
+ if (e.filterModel && JSON.parse(e.filterModel).length) {
299
+ debugger;
300
+ for (const [key, val] of Object.entries(JSON.parse(e.filterModel))) {
300
301
  var field_name = key;
301
302
  var condition = "$and";
302
303
  const make_selector = function (val) {