diff --git a/front/src/App.vue b/front/src/App.vue index 1c2c0ab..6039533 100644 --- a/front/src/App.vue +++ b/front/src/App.vue @@ -46,7 +46,7 @@ export default { this.$store.commit("setTopics", []); this.$store.commit("setRules", []); this.$store.commit("setCurStream", to.path.replace("/", "")); - if (this.currentStream != "" && this.streams.includes(this.currentStream)) { + if (this.currentStream != "" && this.streams.find(s => s.name == this.currentStream)) { this.setUpDoc(this.currentStream); } }); diff --git a/front/src/components/Content/index.vue b/front/src/components/Content/index.vue index 9f3621b..64078b6 100644 --- a/front/src/components/Content/index.vue +++ b/front/src/components/Content/index.vue @@ -24,7 +24,7 @@ export default { ...mapState(["currentStream", "streams"]), ...mapGetters(["sortedTopics"]), title() { - return this.streams.includes(this.currentStream) ? + return this.streams.find(s => s.name == this.currentStream) ? this.currentStream.replace("pub-", "") : 'Stream does not exist.' }