mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-10 17:33:24 +01:00
Fix map title
This commit is contained in:
parent
c60254aca1
commit
d835697132
@ -91,7 +91,7 @@ const EditorPage = ({ isTryMode }: EditorPropsType): React.ReactElement => {
|
||||
mapInfo = new MapInfoImpl(
|
||||
mapId,
|
||||
client,
|
||||
options.title,
|
||||
options.mapTitle,
|
||||
options.isLocked,
|
||||
options.lockedMsg,
|
||||
options.zoom,
|
||||
@ -99,10 +99,10 @@ const EditorPage = ({ isTryMode }: EditorPropsType): React.ReactElement => {
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
if (mapInfo) {
|
||||
if (mapInfo?.getTitle()) {
|
||||
document.title = `${mapInfo.getTitle()} | WiseMapping `;
|
||||
}
|
||||
}, [mapInfo]);
|
||||
}, [mapInfo?.getTitle()]);
|
||||
|
||||
return loadCompleted ? (
|
||||
<IntlProvider
|
||||
|
Loading…
Reference in New Issue
Block a user