fixes: slug updates from global settings

This commit is contained in:
arpitnath 2023-10-24 02:41:23 +05:30
parent b74e1b69b5
commit af6ce45853

View file

@ -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 }) => {