@ -41,17 +41,14 @@ export function getPalette(part: string): string {
export const routeResolver = new RouteResolver({
home: '',
journals: {
_base: 'journals',
_id: {
_base: ':journalUid',
items: {
_base: 'items',
_base: ':itemUid',
},
entries: {
_base: 'entries',
_base: ':entryUid',
@ -12,7 +12,7 @@ export class RouteResolver {
let path: string[] = [];
name.split('.').forEach((key) => {
const val = (typeof dict[key] === 'string') ? dict[key] : dict[key]._base;
const val = (typeof dict[key] === 'string') ? dict[key] : (dict[key]._base) ? dict[key]._base : key;
path.push(val);
dict = dict[key];