@visns-studio/visns-components 5.0.28 → 5.0.29

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": "5.0.28",
80
+ "version": "5.0.29",
81
81
  "description": "Various packages to assist in the development of our Custom Applications.",
82
82
  "main": "src/index.js",
83
83
  "files": [
@@ -70,9 +70,9 @@ function GenericDashboard({ setting }) {
70
70
  }
71
71
  };
72
72
 
73
- useEffect(() => {
74
- fetchData(filters); // Fetch initial data
75
- }, [setting]);
73
+ // useEffect(() => {
74
+ // fetchData(filters); // Fetch initial data
75
+ // }, [setting]);
76
76
 
77
77
  const openModal = (widgetId) => {
78
78
  setModalContent(widgetId);
@@ -165,6 +165,7 @@ function GenericDashboard({ setting }) {
165
165
  useEffect(() => {
166
166
  // Fetch data whenever filters are updated
167
167
  if (Object.keys(filters).length > 0) {
168
+ console.info(filters);
168
169
  fetchData(filters);
169
170
  }
170
171
  }, [filters]);
@@ -244,14 +245,6 @@ function GenericDashboard({ setting }) {
244
245
  }
245
246
  })}
246
247
  <div className={styles['filter-actions']}>
247
- {/* <button
248
- className={`${styles.btn} ${styles['btn-primary']}`}
249
- onClick={() => {
250
- fetchData(filters); // Trigger fetchData with the current filters
251
- }}
252
- >
253
- Apply Filters
254
- </button> */}
255
248
  <button
256
249
  className={`${styles.btn} ${styles['btn-secondary']}`}
257
250
  onClick={() => {