mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-15 11:37:57 +01:00
Add additional debug session for nul sessions
This commit is contained in:
parent
3cd55d14c7
commit
4e155448db
@ -615,8 +615,14 @@ export default class RestClient implements Client {
|
|||||||
if (this.persistenceManager) {
|
if (this.persistenceManager) {
|
||||||
return this.persistenceManager;
|
return this.persistenceManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
let persistence: PersistenceManager;
|
let persistence: PersistenceManager;
|
||||||
if (editorMode === 'edition-owner' || editorMode === 'edition-editor') {
|
if (editorMode === 'edition-owner' || editorMode === 'edition-editor') {
|
||||||
|
|
||||||
|
if (!global.lockSession) {
|
||||||
|
throw new Error(`Session could not be found: global.lockSession ${global.lockSession} - global.lockTimestamp: ${global.lockTimestamp} - ${global.mindmapLocked} - ${global.mindmapLockedMsg}`)
|
||||||
|
}
|
||||||
|
|
||||||
persistence = new RESTPersistenceManager({
|
persistence = new RESTPersistenceManager({
|
||||||
documentUrl: '/c/restful/maps/{id}/document',
|
documentUrl: '/c/restful/maps/{id}/document',
|
||||||
revertUrl: '/c/restful/maps/{id}/history/latest',
|
revertUrl: '/c/restful/maps/{id}/history/latest',
|
||||||
|
Loading…
Reference in New Issue
Block a user