misc small fixes

This commit is contained in:
axolotle
2021-07-28 20:35:54 +02:00
parent 759fbd94f1
commit 25e621a06e
9 changed files with 47 additions and 25 deletions
+6
View File
@@ -69,6 +69,12 @@ export default {
node.type = node.type === 'Textref' ? 'ref' : 'prod'
}
if (node.tags) {
node.tags = node.tags.map(tag => {
return { ...tag, name: tag.name[0].toUpperCase() + tag.name.slice(1) }
})
}
for (const relation of RELATIONS) {
if (relation in node && node[relation]) {
node[relation] = node[relation].map(subNode => {