Fix single TV news headline showing twice and keep empty news hidden.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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 ? 'اخبار' : ''))
|
||||
|
||||
Reference in New Issue
Block a user