mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 09:28:31 +00:00
gs- crash fix
This commit is contained in:
parent
afba5d943b
commit
9f265ae6f6
2 changed files with 8 additions and 2 deletions
|
|
@ -1509,6 +1509,7 @@ const EditorComponent = (props) => {
|
||||||
pages: appDefinition?.pages ?? {},
|
pages: appDefinition?.pages ?? {},
|
||||||
homePageId: appDefinition?.homePageId ?? null,
|
homePageId: appDefinition?.homePageId ?? null,
|
||||||
showViewerNavigation: appDefinition?.showViewerNavigation,
|
showViewerNavigation: appDefinition?.showViewerNavigation,
|
||||||
|
globalSettings: appDefinition?.globalSettings ?? {},
|
||||||
}}
|
}}
|
||||||
setSelectedComponent={setSelectedComponent}
|
setSelectedComponent={setSelectedComponent}
|
||||||
removeComponent={removeComponent}
|
removeComponent={removeComponent}
|
||||||
|
|
@ -1528,6 +1529,7 @@ const EditorComponent = (props) => {
|
||||||
showHideViewerNavigationControls={showHideViewerNavigation}
|
showHideViewerNavigationControls={showHideViewerNavigation}
|
||||||
updateOnSortingPages={updateOnSortingPages}
|
updateOnSortingPages={updateOnSortingPages}
|
||||||
setEditorMarginLeft={handleEditorMarginLeftChange}
|
setEditorMarginLeft={handleEditorMarginLeftChange}
|
||||||
|
isMaintenanceOn={isMaintenanceOn}
|
||||||
/>
|
/>
|
||||||
{!props.showComments && (
|
{!props.showComments && (
|
||||||
<Selecto
|
<Selecto
|
||||||
|
|
|
||||||
|
|
@ -52,8 +52,9 @@ export const LeftSidebar = forwardRef((props, ref) => {
|
||||||
toggleAppMaintenance,
|
toggleAppMaintenance,
|
||||||
app,
|
app,
|
||||||
disableEnablePage,
|
disableEnablePage,
|
||||||
|
isMaintenanceOn,
|
||||||
} = props;
|
} = props;
|
||||||
const { is_maintenance_on } = app;
|
// const { isMaintenanceOn } = app;
|
||||||
|
|
||||||
const dataSources = useDataSources();
|
const dataSources = useDataSources();
|
||||||
const prevSelectedSidebarItem = localStorage.getItem('selectedSidebarItem');
|
const prevSelectedSidebarItem = localStorage.getItem('selectedSidebarItem');
|
||||||
|
|
@ -134,6 +135,8 @@ export const LeftSidebar = forwardRef((props, ref) => {
|
||||||
sideBarBtnRefs.current[page] = ref;
|
sideBarBtnRefs.current[page] = ref;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
console.log('-----arpit::::: [gs]', { appDefinition });
|
||||||
|
|
||||||
const SELECTED_ITEMS = {
|
const SELECTED_ITEMS = {
|
||||||
page: (
|
page: (
|
||||||
<LeftSidebarPageSelector
|
<LeftSidebarPageSelector
|
||||||
|
|
@ -211,7 +214,8 @@ export const LeftSidebar = forwardRef((props, ref) => {
|
||||||
globalSettings={appDefinition.globalSettings}
|
globalSettings={appDefinition.globalSettings}
|
||||||
darkMode={darkMode}
|
darkMode={darkMode}
|
||||||
toggleAppMaintenance={toggleAppMaintenance}
|
toggleAppMaintenance={toggleAppMaintenance}
|
||||||
is_maintenance_on={is_maintenance_on}
|
// is_maintenance_on={is_maintenance_on}
|
||||||
|
isMaintenanceOn={isMaintenanceOn}
|
||||||
app={app}
|
app={app}
|
||||||
/>
|
/>
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue