@visns-studio/visns-components 2.0.5 → 2.0.7

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.
@@ -324,12 +324,18 @@ const DataGrid = forwardRef(
324
324
  const linkKey = rowProps.columns[columnIndex].link.key;
325
325
  const rowData = rowProps.data[linkKey];
326
326
 
327
- if (column.link.folder) {
327
+ if (column.link.hasOwnProperty('folder')) {
328
328
  const linkFolder =
329
329
  rowProps.columns[columnIndex].link.folder;
330
330
 
331
331
  if (rowProps.data[fileRelationArray[0]]) {
332
- window.location.href = `${linkUrl}${rowData}/${linkFolder}`;
332
+ if (linkFolder !== '') {
333
+ window.open(
334
+ `${linkUrl}${rowData}/${linkFolder}`
335
+ );
336
+ } else {
337
+ window.open(`${linkUrl}${rowData}`);
338
+ }
333
339
  }
334
340
  } else {
335
341
  navigate(`${linkUrl}${rowData}`);
package/package.json CHANGED
@@ -40,7 +40,7 @@
40
40
  "react-dom": "^17.0.1"
41
41
  },
42
42
  "name": "@visns-studio/visns-components",
43
- "version": "2.0.5",
43
+ "version": "2.0.7",
44
44
  "description": "Various packages to assist in the development of our Custom Applications.",
45
45
  "main": "index.js",
46
46
  "scripts": {