From 381b6a75dbb7030c6f7fcc1b572cab58118d8247 Mon Sep 17 00:00:00 2001 From: SimonGschnell Date: Tue, 21 Jan 2025 09:40:22 +0100 Subject: [PATCH] update(News DashboardWidget): doesn't render news which don't have a topic --- public/js/components/DashboardWidget/News.js | 21 ++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/public/js/components/DashboardWidget/News.js b/public/js/components/DashboardWidget/News.js index c29f538e4..7e6ed4795 100644 --- a/public/js/components/DashboardWidget/News.js +++ b/public/js/components/DashboardWidget/News.js @@ -39,6 +39,9 @@ export default { } }, methods: { + isString(value){ + return Object.prototype.toString.call(value) === '[object String]'; + }, setNext(){ const thisIndex = this.allNewsList.findIndex(n=>n.news_id == this.selected.news_id) const nextIndex = thisIndex == (this.allNewsList.length - 1) ? 0 : thisIndex + 1 @@ -175,12 +178,18 @@ export default {