Removed local path from default config. Added count fallback in stash tile.
This commit is contained in:
@@ -381,7 +381,7 @@ module.exports = {
|
||||
snapshotIntervals: [],
|
||||
},
|
||||
media: {
|
||||
path: '/home/niels/Projects/traxxx/media',
|
||||
path: './media',
|
||||
transferSources: {
|
||||
local: 'http://localhost:5000/media',
|
||||
s3: 'https://cdn.traxxx.me',
|
||||
|
||||
@@ -47,7 +47,7 @@ const pageContext = inject('pageContext');
|
||||
const profile = pageContext.pageProps.profile;
|
||||
|
||||
function abbreviateNumber(number) {
|
||||
return number.toLocaleString('en-US', { notation: 'compact' });
|
||||
return number?.toLocaleString('en-US', { notation: 'compact' }) || 0;
|
||||
}
|
||||
|
||||
console.log(profile.stashes);
|
||||
|
||||
Reference in New Issue
Block a user