mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-10 17:33:24 +01:00
Fix code inspections warnings.
This commit is contained in:
parent
80cb75c846
commit
0c90ca4cb8
@ -23,6 +23,7 @@ import MindplotWebComponent from './components/MindplotWebComponent';
|
||||
|
||||
console.log('loading static mindmap in read-only');
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
const globalAny: any = global;
|
||||
globalAny.jQuery = jquery;
|
||||
|
||||
@ -34,10 +35,6 @@ const persistence: PersistenceManager = new LocalStorageManager(
|
||||
`/c/restful/maps/{id}/${historyId}document/xml${!global.isAuth ? '-pub' : ''}`,
|
||||
true,
|
||||
);
|
||||
// Obtain map zoom from query param if it was specified...
|
||||
const params = new URLSearchParams(window.location.search.substring(1));
|
||||
|
||||
const zoomParam = Number.parseFloat(params.get('zoom'));
|
||||
|
||||
const webComponent: MindplotWebComponent = document.getElementById(
|
||||
'mindmap-comp',
|
||||
|
@ -67,6 +67,10 @@ const EditorPage = ({ isTryMode }: EditorPropsType): React.ReactElement => {
|
||||
persistence = buildPersistenceManagerForEditor(mode);
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
document.title = `${options.mapTitle} | WiseMapping `;
|
||||
}, [loadCompleted]);
|
||||
|
||||
return loadCompleted ? (
|
||||
<IntlProvider
|
||||
locale={userLocale.code}
|
||||
|
Loading…
Reference in New Issue
Block a user