@visns-studio/visns-components 4.8.9 → 4.8.11

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.9",
78
+ "version": "4.8.11",
79
79
  "description": "Various packages to assist in the development of our Custom Applications.",
80
80
  "main": "src/index.js",
81
81
  "files": [
@@ -901,18 +901,18 @@ const DataGrid = forwardRef(
901
901
  const renderRowContextMenu = useCallback(
902
902
  (menuProps, { rowProps, cellProps }) => {
903
903
  const linkUrl = cellProps?.link?.url;
904
+
904
905
  if (linkUrl) {
906
+ const baseUrl = window.location.origin;
907
+ const fullUrl = `${baseUrl}${linkUrl}${
908
+ rowProps.data[form.primaryKey]
909
+ }`;
910
+
905
911
  menuProps.autoDismiss = true;
906
912
  menuProps.items = [
907
913
  {
908
914
  label: 'Open Link in a New Tab',
909
- onClick: () =>
910
- window.open(
911
- `${linkUrl}/${
912
- rowProps.data[form.primaryKey]
913
- }`,
914
- '_blank'
915
- ),
915
+ onClick: () => window.open(fullUrl, '_blank'),
916
916
  },
917
917
  ];
918
918
  }
@@ -759,7 +759,11 @@ function Form({
759
759
  let newValue = value;
760
760
 
761
761
  if (urlParam) {
762
- newValue = paramValue;
762
+ if (urlParam === 'userProfile.id') {
763
+ newValue = userProfile.id || 0;
764
+ } else {
765
+ newValue = paramValue;
766
+ }
763
767
  }
764
768
 
765
769
  if (parent) {