Fix single TV news headline showing twice and keep empty news hidden.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-11 17:30:48 +03:30
co-authored by Cursor
parent b211c8773b
commit 7f8ae8bd74
2 changed files with 18 additions and 9 deletions
+1 -5
View File
@@ -178,11 +178,7 @@ export function useTvMonitorPage() {
const tvNewsItems = computed(() => {
void settingsStore.settingsRevision
const raw = settingsStore.getSettingByKey('tv_news') ?? getConfigApp('tv_news')
if (raw == null) {
return ['تا حالا از اپ کشکول طلای آنلاین خریدی؟']
}
return parseTvNews(raw)
return parseTvNews(settingsStore.getSettingByKey('tv_news') ?? getConfigApp('tv_news'))
})
const newsTickerTitle = computed(() => (tvNewsItems.value.length ? 'اخبار' : ''))