Skip to content
Snippets Groups Projects
Commit 0fb1682b authored by Sirieam Marie Hunke's avatar Sirieam Marie Hunke Committed by Kimia Beheshti
Browse files

Fix: Wrong BreadCrumb Definition

parent 5f153597
No related branches found
No related tags found
2 merge requests!134Release: Sprint/2022 20 :robot:,!130Fix: Wrong BreadCrumb Definition
...@@ -128,9 +128,12 @@ export default defineComponent({ ...@@ -128,9 +128,12 @@ export default defineComponent({
}, },
watch: { watch: {
crumbs() { crumbs() {
let title = let title = this.$t("breadcrumbs.home").toString();
if (this.crumbs && this.crumbs.length) {
title =
this.crumbs.map((n) => n.text).at(-1) ?? this.crumbs.map((n) => n.text).at(-1) ??
this.$t("breadcrumbs.home").toString(); this.$t("breadcrumbs.home").toString();
}
if ( if (
this.resource && this.resource &&
this.resource.type && this.resource.type &&
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment