@visns-studio/visns-components 3.8.0 → 3.8.2

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.
@@ -36,7 +36,7 @@ function Breadcrumb({ data, page }) {
36
36
  <Link to={page && page.previousUrl ? page.previousUrl : null}>
37
37
  {page && page.title ? page.title : null}
38
38
  </Link>{' '}
39
- {data && data[page.titleKey] ? (
39
+ {page?.titleKey && data && data[page.titleKey] ? (
40
40
  <>
41
41
  <CircleChevronRight strokeWidth={2} size={18} />{' '}
42
42
  {data[page.titleKey]}
@@ -232,7 +232,7 @@ function GenericIndex({ layout = 'full', setting, userProfile }) {
232
232
 
233
233
  const renderContent = useCallback(
234
234
  () => (
235
- <div className={`grid__${subnav?.length > 0 ? 'subrow' : 'full'}`}>
235
+ <>
236
236
  {subnav?.length > 0 && (
237
237
  <div
238
238
  className={`grid__${
@@ -254,7 +254,7 @@ function GenericIndex({ layout = 'full', setting, userProfile }) {
254
254
  >
255
255
  {renderContentBasedOnType()}
256
256
  </div>
257
- </div>
257
+ </>
258
258
  ),
259
259
  [layout, subnav, setSubnav, setConfig, renderTable]
260
260
  );
package/package.json CHANGED
@@ -54,7 +54,7 @@
54
54
  "react-dom": "^17.0.1"
55
55
  },
56
56
  "name": "@visns-studio/visns-components",
57
- "version": "3.8.0",
57
+ "version": "3.8.2",
58
58
  "description": "Various packages to assist in the development of our Custom Applications.",
59
59
  "main": "index.js",
60
60
  "scripts": {