From d9ce23aaf6c1a88d8b7938048c1fdc796780b683 Mon Sep 17 00:00:00 2001 From: arpitnath Date: Mon, 23 Oct 2023 20:05:50 +0530 Subject: [PATCH] fixes: viewer route --- frontend/src/App/App.jsx | 2 +- frontend/src/Editor/Viewer.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/App/App.jsx b/frontend/src/App/App.jsx index 5958d6ea70..940f96e00b 100644 --- a/frontend/src/App/App.jsx +++ b/frontend/src/App/App.jsx @@ -178,7 +178,7 @@ class AppComponent extends React.Component { /> diff --git a/frontend/src/Editor/Viewer.jsx b/frontend/src/Editor/Viewer.jsx index 87f5bc0fa5..f1e431fa77 100644 --- a/frontend/src/Editor/Viewer.jsx +++ b/frontend/src/Editor/Viewer.jsx @@ -533,7 +533,7 @@ class ViewerComponent extends React.Component { } = this.state; const currentCanvasWidth = canvasWidth; - const queryConfirmationList = this.props.queryConfirmationList; + const queryConfirmationList = this.props?.queryConfirmationList ?? []; const canvasMaxWidth = this.computeCanvasMaxWidth();