Moved summary template editor to profile page.

This commit is contained in:
2024-09-01 02:54:03 +02:00
parent 2cf7f2a692
commit 05fff7608e
8 changed files with 190 additions and 96 deletions

View File

@@ -39,8 +39,8 @@ const propProcessors = {
return true;
})
.map((tag) => tag.name),
movie: (sceneInfo) => sceneInfo.movies[0]?.title,
date: (sceneInfo, options) => format(sceneInfo.effectiveDate, options.format || 'yyyy-MM-dd'),
movie: (sceneInfo) => sceneInfo.movies?.[0]?.title,
date: (sceneInfo, options) => (sceneInfo.effectiveDate ? format(sceneInfo.effectiveDate, options.format || 'yyyy-MM-dd') : ''),
};
function curateValue(value, item) {