@visns-studio/visns-components 4.10.34 → 4.10.35

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.
package/package.json CHANGED
@@ -77,7 +77,7 @@
77
77
  "react-dom": "^17.0.0 || ^18.0.0"
78
78
  },
79
79
  "name": "@visns-studio/visns-components",
80
- "version": "4.10.34",
80
+ "version": "4.10.35",
81
81
  "description": "Various packages to assist in the development of our Custom Applications.",
82
82
  "main": "src/index.js",
83
83
  "files": [
@@ -2,7 +2,7 @@ import '../styles/global.css';
2
2
 
3
3
  import React, { useEffect, useRef, useState } from 'react';
4
4
  import DatePicker from 'react-datepicker';
5
- import _ from 'lodash';
5
+ import _, { forEach } from 'lodash';
6
6
  import Toggle from 'react-toggle';
7
7
  import moment from 'moment';
8
8
  import parse from 'html-react-parser';
@@ -227,6 +227,12 @@ function Field({
227
227
  filter.orderBy = a.orderBy;
228
228
  }
229
229
 
230
+ if (a.where) {
231
+ forEach(a.where, (w) => {
232
+ filter.where.push(w);
233
+ });
234
+ }
235
+
230
236
  CustomFetch(a.url, 'POST', filter, function (result) {
231
237
  childDropdownCallback({
232
238
  id: a.id,