From 5b251ce9b3b032866a9d86410b0e5865902f0bf8 Mon Sep 17 00:00:00 2001 From: Amardeepsingh Siglani Date: Thu, 31 Aug 2023 15:21:04 -0700 Subject: [PATCH] added null check Signed-off-by: Amardeepsingh Siglani --- public/pages/Main/Main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/pages/Main/Main.js b/public/pages/Main/Main.js index 5268e1b8d..a9773f572 100644 --- a/public/pages/Main/Main.js +++ b/public/pages/Main/Main.js @@ -44,7 +44,7 @@ class Main extends Component { this.props.history, this.props.location ); - this.context.chrome.setBreadcrumbs(breadcrumbs); + this.context.chrome?.setBreadcrumbs(breadcrumbs); } // TODO: Want to move this to redux store so we don't have to pass down setFlyout through components