Merge pull request #4069 from overleaf/as-file-views-use-context

Pull project id from `EditorContext` instead of `window` in file views

GitOrigin-RevId: 78c2686d8bcd1e95414631ca77143fd9ae3edbc6
This commit is contained in:
Jakob Ackermann
2021-05-22 02:05:56 +00:00
committed by Copybot
parent 3f1ae7bff2
commit 8f0a0439cd
9 changed files with 76 additions and 61 deletions
@@ -2,6 +2,7 @@ import App from '../../../base'
import { react2angular } from 'react2angular'
import _ from 'lodash'
import { rootContext } from '../../../shared/context/root-context'
import BinaryFile from '../components/binary-file'
export default App.controller(
@@ -18,5 +19,5 @@ export default App.controller(
App.component(
'binaryFile',
react2angular(BinaryFile, ['storeReferencesKeys', 'file'])
react2angular(rootContext.use(BinaryFile), ['storeReferencesKeys', 'file'])
)