mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-04-22 00:34:43 +01:00
fix: use PremiereDate as default if missing from collection
This commit is contained in:
@@ -76,7 +76,7 @@ const page: React.FC = () => {
|
|||||||
navigation.setOptions({ title: collection?.Name || "" });
|
navigation.setOptions({ title: collection?.Name || "" });
|
||||||
setSortBy([
|
setSortBy([
|
||||||
{
|
{
|
||||||
key: collection?.DisplayOrder as ItemSortBy,
|
key: (collection?.DisplayOrder as ItemSortBy) ?? "PremiereDate",
|
||||||
value: collection?.DisplayOrder ?? "Premiere Date",
|
value: collection?.DisplayOrder ?? "Premiere Date",
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|||||||
Reference in New Issue
Block a user