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 {