Do not show hidden tracks in the track list

This commit is contained in:
Vencislav Atanasov 2024-09-19 12:58:56 +03:00
parent e5108ff5d9
commit 3eaf86ba2d
1 changed files with 3 additions and 1 deletions

View File

@ -25,7 +25,9 @@ export default function Schedule({
</tr> </tr>
</thead> </thead>
</table>} </table>}
{tracks && Object.entries(tracks).map(([trackId, track]) => <div key={trackId} style={{ {tracks && Object.entries(tracks).filter(([, track]) =>
!isTrackHidden(track)
).map(([trackId, track]) => <div key={trackId} style={{
width: '100%', width: '100%',
border: '1px solid black', border: '1px solid black',
textAlign: 'center', textAlign: 'center',