Skip to content
Snippets Groups Projects
Commit 99ced97d authored by Tarje.Lavik's avatar Tarje.Lavik
Browse files

Fix preview error on multi-ling label

parent b32ea478
No related branches found
No related tags found
No related merge requests found
import { timespanAsString } from '../../helpers/helpers'
import { coalesceLabel, timespanAsString } from '../../helpers/helpers'
import {timespan, referredToBy, tookPlaceAt, featured} from '../../props'
var capitalize = require('capitalize')
......@@ -76,7 +76,7 @@ export default {
const {type, joinedWith, bb, eb, date, be, ee} = selection
const timespan = timespanAsString(bb, eb, date, be, ee, 'nb')
return {
title: `${capitalize(type)} ${joinedWith ? joinedWith : ''}`,
title: `${capitalize(type)}: ${joinedWith ? coalesceLabel(joinedWith) : ''}`,
subtitle: `${timespan ? timespan : ''}`,
}
},
......
import {timespan, tookPlaceAt, referredToBy, featured} from '../../props'
import {defaultFieldsets} from '../../fieldsets'
import { timespanAsString } from '../../helpers/helpers'
import { coalesceLabel, timespanAsString } from '../../helpers/helpers'
var capitalize = require('capitalize')
......@@ -75,7 +75,7 @@ export default {
const {type, separatedFrom, bb, eb, date, be, ee} = selection
const timespan = timespanAsString(bb, eb, date, be, ee, 'nb')
return {
title: `${capitalize(type)} ${separatedFrom ? separatedFrom : ''}`,
title: `${capitalize(type)} ${separatedFrom ? coalesceLabel(separatedFrom) : ''}`,
subtitle: `${timespan ? timespan : ''}`,
}
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment