use getter for latestRelease

This commit is contained in:
Gamebrary 2022-10-28 19:47:17 -07:00
parent 7c3890ebd2
commit 287779fe2e

View file

@ -6,6 +6,7 @@ import presetHTML5 from '@bbob/preset-html5'
import orderby from 'lodash.orderby';
export default {
latestRelease: ({ releases }) => releases?.[0]?.tag_name || 'v1',
darkTheme: ({ settings }) => settings?.darkTheme || false,
sortedBoards: ({ boards }) => orderby(boards, 'lastUpdated', 'desc'),