fix: use PremiereDate as default if missing from collection

This commit is contained in:
sarendsen
2024-08-30 10:04:02 +02:00
parent 30678813b4
commit 32ac4ec62f

View File

@@ -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",
}, },
]); ]);