Fix legacy breadcrumbs wrongly showing up (#7425)

This commit is contained in:
Michael Telatynski 2021-12-21 12:27:44 +00:00 committed by GitHub
parent 9ac85bcaa3
commit d6af7294e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -84,7 +84,7 @@ export default class LeftPanel extends React.Component<IProps, IState> {
}
private static get breadcrumbsMode(): BreadcrumbsMode {
if (!SettingsStore.getValue("breadcrumbs")) return BreadcrumbsMode.Disabled;
if (!BreadcrumbsStore.instance.visible) return BreadcrumbsMode.Disabled;
return SettingsStore.getValue("feature_breadcrumbs_v2") ? BreadcrumbsMode.Labs : BreadcrumbsMode.Legacy;
}