From 830123df982ddbdcac428ea910d92bc240801f41 Mon Sep 17 00:00:00 2001 From: Alf Eaton Date: Wed, 24 Nov 2021 10:25:05 +0000 Subject: [PATCH] Merge pull request #5841 from overleaf/ae-deep-watch-rootfolder [web] Use deep option when watching scope.rootFolder GitOrigin-RevId: a82a74fd3dad8aad833d14b3bde1e175b6c41895 --- services/web/frontend/js/shared/context/editor-context.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/frontend/js/shared/context/editor-context.js b/services/web/frontend/js/shared/context/editor-context.js index d878465a61..119a188041 100644 --- a/services/web/frontend/js/shared/context/editor-context.js +++ b/services/web/frontend/js/shared/context/editor-context.js @@ -73,7 +73,7 @@ export function EditorProvider({ children, settings }) { const [loading] = useScopeValue('state.loading') const [projectName, setProjectName] = useScopeValue('project.name') - const [rootFolder] = useScopeValue('rootFolder') + const [rootFolder] = useScopeValue('rootFolder', true) const [permissionsLevel] = useScopeValue('permissionsLevel') const [showSymbolPalette] = useScopeValue('editor.showSymbolPalette') const [toggleSymbolPalette] = useScopeValue('editor.toggleSymbolPalette')