fix(frontend/releases): fix null episode name if API returning null in episode.name

add fallback to use episode position
This commit is contained in:
Kentai Radiquum 2024-04-30 18:37:02 +05:00
parent 99f7b4cdbb
commit 9bdd217fe0
Signed by: Radiquum
GPG key ID: 858E8EE696525EED

View file

@ -155,7 +155,7 @@ export const ReleasePlayer = (props) => {
style={{ marginLeft: "8px" }}
>
{item.is_watched && <i className="small">check</i>}
{item.name}
{item.name || `${item.position + 1} серия`}
</button>
);
})}