mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-21 06:59:09 +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);
|
: getPropertyValue(eventNow, secondarySource, entries);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
showNow: mainSource !== 'none' || Boolean(nowSecondary),
|
showNow: mainSource !== 'none' && (Boolean(nowMain) || Boolean(nowSecondary)),
|
||||||
nowMain,
|
nowMain,
|
||||||
nowSecondary,
|
nowSecondary,
|
||||||
showNext: mainSource !== 'none' || Boolean(nextSecondary),
|
showNext: mainSource !== 'none' && (Boolean(nextMain) || Boolean(nextSecondary)),
|
||||||
nextMain,
|
nextMain,
|
||||||
nextSecondary,
|
nextSecondary,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user