Просмотр исходного кода

Merge pull request #4222 from overleaf/ae-project-owner-id-path

Fix project owner id path in scope

GitOrigin-RevId: 5ea74a01d9feb584c4cb78b620d2f2854ee45e3f
Miguel Serrano 5 лет назад
Родитель
Сommit
567d52c573
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      services/web/frontend/js/shared/context/editor-context.js

+ 1 - 1
services/web/frontend/js/shared/context/editor-context.js

@@ -53,7 +53,7 @@ export function EditorProvider({ children, settings }) {
   const [projectName, setProjectName] = useScopeValue('project.name')
   const [compileGroup] = useScopeValue('project.features.compileGroup')
   const [rootFolder] = useScopeValue('rootFolder')
-  const [ownerId] = useScopeValue('project.owner.id')
+  const [ownerId] = useScopeValue('project.owner._id')
 
   const renameProject = useCallback(
     newName => {