Fix conditional rendering in DashboardWidget: Change v-else-if to v-if for newsDataResults to ensure proper display of news articles when data is available.
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
<div v-else-if="error" class="dashboard-widget__state dashboard-widget__error">{{ error }}</div>
|
||||
<div v-else class="dashboard-widget__body">
|
||||
<slot :data="data">
|
||||
<template v-else-if="newsDataResults.length">
|
||||
<template v-if="newsDataResults.length">
|
||||
<ul class="dashboard-widget__list">
|
||||
<li v-for="(item, i) in newsDataResults" :key="item.article_id || i" class="dashboard-widget__list-item">
|
||||
<a v-if="item.link" :href="item.link" target="_blank" rel="noopener noreferrer" class="dashboard-widget__news-title">{{ item.title || '—' }}</a>
|
||||
|
||||
Reference in New Issue
Block a user