Merge pull request #15684 from overleaf/td-ide-page-main-doc-left-menu

Add docs to FileTreeDataContext to replace 'docs' scope value in React code

GitOrigin-RevId: 430f795eb0cd17f0f4fab9c61e46fb04ff3030b3
This commit is contained in:
Tim Down
2023-11-14 09:04:40 +00:00
committed by Copybot
parent 1c820de200
commit 6f34a84ebd
14 changed files with 90 additions and 60 deletions
@@ -56,10 +56,6 @@ function populatePdfScope(store: ReactScopeValueStore) {
store.allowNonExistentPath('pdf', true)
}
function populateFileTreeScope(store: ReactScopeValueStore) {
store.set('docs', [])
}
function createReactScopeValueStore(projectId: string) {
const scopeStore = new ReactScopeValueStore()
@@ -76,7 +72,6 @@ function createReactScopeValueStore(projectId: string) {
populateSettingsScope(scopeStore)
populateOnlineUsersScope(scopeStore)
populateReferenceScope(scopeStore)
populateFileTreeScope(scopeStore)
populateReviewPanelScope(scopeStore)
scopeStore.allowNonExistentPath('hasLintingError')