This commit is contained in:
Tom Moor 2018-11-13 20:54:18 -08:00
parent ac21d4b6e8
commit 400d0f264e
1 changed files with 2 additions and 0 deletions

View File

@ -18,6 +18,8 @@ type Props = {
const Breadcrumb = observer(({ document, collections }: Props) => {
const path = document.pathToDocument.slice(0, -1);
if (!document.collection) return null;
const collection =
collections.getById(document.collection.id) || document.collection;