@visns-studio/visns-components 5.12.14 → 5.12.15
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
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"react-dom": "^17.0.0 || ^18.0.0"
|
|
88
88
|
},
|
|
89
89
|
"name": "@visns-studio/visns-components",
|
|
90
|
-
"version": "5.12.
|
|
90
|
+
"version": "5.12.15",
|
|
91
91
|
"description": "Various packages to assist in the development of our Custom Applications.",
|
|
92
92
|
"main": "src/index.js",
|
|
93
93
|
"files": [
|
|
@@ -2634,8 +2634,8 @@ const GenericGrid = ({
|
|
|
2634
2634
|
);
|
|
2635
2635
|
return (
|
|
2636
2636
|
matchingOption || {
|
|
2637
|
-
value: val,
|
|
2638
|
-
label: val,
|
|
2637
|
+
value: typeof val === 'object' ? (val.id || val.value || val.key || val.code || val.slug || val.uuid || Object.keys(val)[0]) : val,
|
|
2638
|
+
label: typeof val === 'object' ? (val.name || val.label || val.title || val.text || val.description || val.display_name || val.displayName || val.full_name || val.fullName || val.username || val.email || val.code || val.slug || val.id || val.value || val.key || val.uuid || JSON.stringify(val)) : val,
|
|
2639
2639
|
}
|
|
2640
2640
|
);
|
|
2641
2641
|
})
|