Fix materialComp und PWA DEVOptions
All checks were successful
Build and Push Docker Images / build-backend (push) Successful in 15s
Build and Push Docker Images / build-frontend (push) Successful in 1m2s

This commit is contained in:
2026-04-15 10:38:50 +02:00
parent 849e24092e
commit 0b7d20d946
2 changed files with 4 additions and 3 deletions

View File

@@ -125,7 +125,7 @@ export default defineNuxtConfig({
}, },
devOptions: { devOptions: {
enabled: true, // Damit du es auch lokal testen kannst enabled: false,
type: 'module', type: 'module',
}, },
}, },

View File

@@ -1039,6 +1039,7 @@ const documentReport = computed(() => {
} else if (row.service) { } else if (row.service) {
let service = services.value.find(i => i.id === row.service) let service = services.value.find(i => i.id === row.service)
if (!service) return
if (service.materialComposition) { if (service.materialComposition) {
service.materialComposition.forEach(entry => { service.materialComposition.forEach(entry => {
@@ -1197,8 +1198,8 @@ const getDocumentData = async () => {
} }
if (!['pagebreak', 'title', 'text'].includes(row.mode)) { if (!['pagebreak', 'title', 'text'].includes(row.mode)) {
if (row.mode === 'normal') row.text = products.value.find(i => i.id === row.product).name if (row.mode === 'normal') row.text = products.value.find(i => i.id === row.product)?.name || ''
if (row.mode === 'service') row.text = services.value.find(i => i.id === row.service).name if (row.mode === 'service') row.text = services.value.find(i => i.id === row.service)?.name || ''
return { return {