diff --git a/typo3/sysext/workspaces/Resources/Public/JavaScript/Backend.js b/typo3/sysext/workspaces/Resources/Public/JavaScript/Backend.js index 0da8b7ac3dea304b8c400d712fbec873e2a824e6..dfc1aef543dad7362a3420b13a125167d1788788 100644 --- a/typo3/sysext/workspaces/Resources/Public/JavaScript/Backend.js +++ b/typo3/sysext/workspaces/Resources/Public/JavaScript/Backend.js @@ -69,11 +69,12 @@ define([ }; Backend.initialize = function() { - var persistedDepth = Persistent.get('Workspaces.Module.depth'); + var persistedDepth; Backend.getElements(); Backend.registerEvents(); - if (persistedDepth > 0) { + if (Persistent.isset('Workspaces.Module.depth')) { + persistedDepth = Persistent.get('Workspaces.Module.depth'); Backend.elements.$depthSelector.val(persistedDepth); Backend.settings.depth = persistedDepth; } else {