@visns-studio/visns-components 5.5.4 → 5.5.5
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
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"react-dom": "^17.0.0 || ^18.0.0"
|
|
83
83
|
},
|
|
84
84
|
"name": "@visns-studio/visns-components",
|
|
85
|
-
"version": "5.5.
|
|
85
|
+
"version": "5.5.5",
|
|
86
86
|
"description": "Various packages to assist in the development of our Custom Applications.",
|
|
87
87
|
"main": "src/index.js",
|
|
88
88
|
"files": [
|
|
@@ -756,6 +756,17 @@ const DataGrid = forwardRef(
|
|
|
756
756
|
// Extracting nested value using predefined keys from 's.relation'
|
|
757
757
|
const nestedValue = getNestedValue(d, s.relation);
|
|
758
758
|
|
|
759
|
+
console.info(d, s.relation);
|
|
760
|
+
|
|
761
|
+
// Check if nestedValue is defined and is an array before mapping
|
|
762
|
+
if (!nestedValue || !Array.isArray(nestedValue)) {
|
|
763
|
+
console.warn(
|
|
764
|
+
'Gallery data is undefined or not an array'
|
|
765
|
+
);
|
|
766
|
+
toast.warning('Gallery data is unavailable');
|
|
767
|
+
return;
|
|
768
|
+
}
|
|
769
|
+
|
|
759
770
|
// Mapping nested values to create gallery array with source, captions, and dimensions
|
|
760
771
|
const galleryArray = nestedValue.map((item) => ({
|
|
761
772
|
src: item[s.key],
|
|
@@ -1337,7 +1348,13 @@ const DataGrid = forwardRef(
|
|
|
1337
1348
|
const handleIconClick = (e) => {
|
|
1338
1349
|
e.preventDefault();
|
|
1339
1350
|
e.stopPropagation();
|
|
1340
|
-
|
|
1351
|
+
|
|
1352
|
+
// Ensure both s and d are defined before calling handleSettingClick
|
|
1353
|
+
if (s && d) {
|
|
1354
|
+
handleSettingClick(s, d);
|
|
1355
|
+
} else {
|
|
1356
|
+
console.warn('Missing settings or data for icon click');
|
|
1357
|
+
}
|
|
1341
1358
|
};
|
|
1342
1359
|
|
|
1343
1360
|
const tooltipContent =
|