Skip to content
Snippets Groups Projects
Commit 643be6bb authored by Tom Robinson's avatar Tom Robinson
Browse files

Remove special logic for collection breadcrumbs now that effective_ancestors...

Remove special logic for collection breadcrumbs now that effective_ancestors includes root collection
parent 6f138b0a
No related branches found
No related tags found
No related merge requests found
......@@ -29,8 +29,6 @@ import CollectionEmptyState from "metabase/components/CollectionEmptyState";
import CollectionMoveModal from "metabase/containers/CollectionMoveModal";
import { entityObjectLoader } from "metabase/entities/containers/EntityObjectLoader";
import { ROOT_COLLECTION } from "metabase/entities/collections";
import CollectionList from "metabase/components/CollectionList";
import { getUserIsAdmin } from "metabase/selectors/user";
......@@ -595,11 +593,8 @@ class CollectionLanding extends React.Component {
const { object: currentCollection, params: { collectionId } } = this.props;
const isRoot = collectionId === "root";
// effective_ancestors doesn't include root collection so add it (unless this is the root collection, of course)
const ancestors =
!isRoot && currentCollection && currentCollection.effective_ancestors
? [ROOT_COLLECTION, ...currentCollection.effective_ancestors]
: [];
(currentCollection && currentCollection.effective_ancestors) || [];
return (
<Box>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment