mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 08:58:26 +00:00
fixes: Page side bar is not rendered in viewer
This commit is contained in:
parent
6b96c3c9e3
commit
fd92cce616
1 changed files with 3 additions and 3 deletions
|
|
@ -94,6 +94,7 @@ class ViewerComponent extends React.Component {
|
|||
isLoading: false,
|
||||
isAppLoaded: true,
|
||||
appDefinition: { ...appDefData },
|
||||
pages: appDefData.pages,
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -194,7 +195,6 @@ class ViewerComponent extends React.Component {
|
|||
selectedComponent: null,
|
||||
dataQueries: dataQueries,
|
||||
currentPageId: currentPage.id,
|
||||
pages: {},
|
||||
homepage: appDefData?.pages?.[this.state.appDefinition?.homePageId]?.handle,
|
||||
event: data.events ?? [],
|
||||
},
|
||||
|
|
@ -572,7 +572,7 @@ class ViewerComponent extends React.Component {
|
|||
|
||||
if (appDefinition.globalSettings?.canvasMaxWidthType === 'px')
|
||||
computedCanvasMaxWidth =
|
||||
(+appDefinition.globalSettings?.canvasMaxWidth || 1292) - (appDefinition?.showViewerNavigation ? 200 : 0);
|
||||
(+appDefinition.globalSettings?.canvasMaxWidth || 1292) - (appDefinition?.showHideViewerNavigation ? 200 : 0);
|
||||
else if (appDefinition.globalSettings?.canvasMaxWidthType === '%')
|
||||
computedCanvasMaxWidth = +appDefinition.globalSettings?.canvasMaxWidth + '%';
|
||||
|
||||
|
|
@ -688,7 +688,7 @@ class ViewerComponent extends React.Component {
|
|||
}}
|
||||
>
|
||||
<div className="areas d-flex flex-rows">
|
||||
{appDefinition?.showViewerNavigation && (
|
||||
{appDefinition?.showHideViewerNavigation && (
|
||||
<ViewerNavigation
|
||||
isMobileDevice={this.props.currentLayout === 'mobile'}
|
||||
canvasBackgroundColor={this.computeCanvasBackgroundColor()}
|
||||
|
|
|
|||
Loading…
Reference in a new issue