mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-08 17:03:53 +00:00
fix: hide now and next cards if there is no content
This commit is contained in:
committed by
Carlos Valente
parent
aec6673b07
commit
39e6c15adf
@@ -181,10 +181,10 @@ export function getCardData(
|
||||
: getPropertyValue(eventNow, secondarySource, entries);
|
||||
|
||||
return {
|
||||
showNow: mainSource !== 'none' || Boolean(nowSecondary),
|
||||
showNow: mainSource !== 'none' && (Boolean(nowMain) || Boolean(nowSecondary)),
|
||||
nowMain,
|
||||
nowSecondary,
|
||||
showNext: mainSource !== 'none' || Boolean(nextSecondary),
|
||||
showNext: mainSource !== 'none' && (Boolean(nextMain) || Boolean(nextSecondary)),
|
||||
nextMain,
|
||||
nextSecondary,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user