Corrected Type

This commit is contained in:
2025-04-12 11:25:50 +02:00
parent fe14591e02
commit 56334128ae
2 changed files with 4 additions and 3 deletions

View File

@@ -46,7 +46,7 @@ setup()
</template>
<Toolbar>
<DocumentUpload
:type="props.type.substring(0,props.type.length-1)"
:type="props.topLevelType.substring(0,props.topLevelType.length-1)"
:element-id="props.item.id"
@uploadFinished="emit('updateNeeded')"
/>

View File

@@ -27,8 +27,9 @@ const dataType = dataStore.dataTypes[props.topLevelType]
<template>
<UCard class="mt-5 scroll" :style="props.platform !== 'mobile' ? 'height: 80vh' : ''">
<HistoryDisplay
:type="props.topLevelType.substring(0,props.topLevelType.length-1)"
v-if="props.item.id"
:type="dataType.historyItemHolder"
v-if="props
.item.id"
:element-id="props.item.id"
render-headline
/>