Fix build

This commit is contained in:
Sakura Knoll
2022-07-06 03:43:26 +09:00 Unverified
parent 6dcdb79ff3
commit 814ec0c081
3 changed files with 10 additions and 6 deletions
@@ -38,7 +38,9 @@ export async function getStaticProps({
type: 'single',
stigmataData: stigmataData,
stigmataSetList: (
getStigmataListBySetId(stigmataData.set!, locale) || []
(stigmataData.set != null &&
getStigmataListBySetId(stigmataData.set!, locale)) ||
[]
).sort((a, b) => -a.type.localeCompare(b.type)),
stigmataSet: getStigmataSetBySetId(stigmataData.set!, locale) || null,
...(await getI18NProps(locale)),