Removed local path from default config. Added count fallback in stash tile.

This commit is contained in:
DebaucheryLibrarian 2024-03-17 05:19:28 +01:00
parent d9a7e3cd04
commit be5eac1194
2 changed files with 2 additions and 2 deletions

View File

@ -381,7 +381,7 @@ module.exports = {
snapshotIntervals: [], snapshotIntervals: [],
}, },
media: { media: {
path: '/home/niels/Projects/traxxx/media', path: './media',
transferSources: { transferSources: {
local: 'http://localhost:5000/media', local: 'http://localhost:5000/media',
s3: 'https://cdn.traxxx.me', s3: 'https://cdn.traxxx.me',

View File

@ -47,7 +47,7 @@ const pageContext = inject('pageContext');
const profile = pageContext.pageProps.profile; const profile = pageContext.pageProps.profile;
function abbreviateNumber(number) { function abbreviateNumber(number) {
return number.toLocaleString('en-US', { notation: 'compact' }); return number?.toLocaleString('en-US', { notation: 'compact' }) || 0;
} }
console.log(profile.stashes); console.log(profile.stashes);