mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 01:18:23 +00:00
fixes: slug updates from global settings
This commit is contained in:
parent
b74e1b69b5
commit
af6ce45853
1 changed files with 2 additions and 4 deletions
|
|
@ -24,8 +24,6 @@ export const GlobalSettings = ({
|
|||
isMaintenanceOn,
|
||||
backgroundFxQuery,
|
||||
realState,
|
||||
handleSlugChange,
|
||||
slug: oldSlug,
|
||||
}) => {
|
||||
const { t } = useTranslation();
|
||||
const { hideHeader, canvasMaxWidth, canvasMaxWidthType, canvasBackgroundColor } = globalSettings;
|
||||
|
|
@ -44,7 +42,7 @@ export const GlobalSettings = ({
|
|||
shallow
|
||||
);
|
||||
|
||||
const { app } = useAppInfo();
|
||||
const { app, slug: oldSlug } = useAppInfo();
|
||||
|
||||
const coverStyles = {
|
||||
position: 'fixed',
|
||||
|
|
@ -81,8 +79,8 @@ export const GlobalSettings = ({
|
|||
error: '',
|
||||
});
|
||||
setSlugProgress(false);
|
||||
handleSlugChange(value);
|
||||
setSlugUpdatedState(true);
|
||||
|
||||
replaceEditorURL(value, realState?.page?.handle);
|
||||
})
|
||||
.catch(({ error }) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue