@visns-studio/visns-components 4.8.8 → 4.8.9
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
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"react-dom": "^17.0.0 || ^18.0.0"
|
|
76
76
|
},
|
|
77
77
|
"name": "@visns-studio/visns-components",
|
|
78
|
-
"version": "4.8.
|
|
78
|
+
"version": "4.8.9",
|
|
79
79
|
"description": "Various packages to assist in the development of our Custom Applications.",
|
|
80
80
|
"main": "src/index.js",
|
|
81
81
|
"files": [
|
|
@@ -900,23 +900,19 @@ const DataGrid = forwardRef(
|
|
|
900
900
|
|
|
901
901
|
const renderRowContextMenu = useCallback(
|
|
902
902
|
(menuProps, { rowProps, cellProps }) => {
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
cellProps.link.url &&
|
|
906
|
-
cellProps.link.url !== ''
|
|
907
|
-
) {
|
|
903
|
+
const linkUrl = cellProps?.link?.url;
|
|
904
|
+
if (linkUrl) {
|
|
908
905
|
menuProps.autoDismiss = true;
|
|
909
906
|
menuProps.items = [
|
|
910
907
|
{
|
|
911
908
|
label: 'Open Link in a New Tab',
|
|
912
|
-
onClick: () =>
|
|
909
|
+
onClick: () =>
|
|
913
910
|
window.open(
|
|
914
|
-
`${
|
|
911
|
+
`${linkUrl}/${
|
|
915
912
|
rowProps.data[form.primaryKey]
|
|
916
913
|
}`,
|
|
917
914
|
'_blank'
|
|
918
|
-
)
|
|
919
|
-
},
|
|
915
|
+
),
|
|
920
916
|
},
|
|
921
917
|
];
|
|
922
918
|
}
|