Closes #801
This commit is contained in:
@@ -18,6 +18,8 @@ type Props = {
|
|||||||
|
|
||||||
const Breadcrumb = observer(({ document, collections }: Props) => {
|
const Breadcrumb = observer(({ document, collections }: Props) => {
|
||||||
const path = document.pathToDocument.slice(0, -1);
|
const path = document.pathToDocument.slice(0, -1);
|
||||||
|
if (!document.collection) return null;
|
||||||
|
|
||||||
const collection =
|
const collection =
|
||||||
collections.getById(document.collection.id) || document.collection;
|
collections.getById(document.collection.id) || document.collection;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user