Fix materialComp und PWA DEVOptions
This commit is contained in:
@@ -125,7 +125,7 @@ export default defineNuxtConfig({
|
||||
},
|
||||
|
||||
devOptions: {
|
||||
enabled: true, // Damit du es auch lokal testen kannst
|
||||
enabled: false,
|
||||
type: 'module',
|
||||
},
|
||||
},
|
||||
|
||||
@@ -1039,6 +1039,7 @@ const documentReport = computed(() => {
|
||||
|
||||
} else if (row.service) {
|
||||
let service = services.value.find(i => i.id === row.service)
|
||||
if (!service) return
|
||||
|
||||
if (service.materialComposition) {
|
||||
service.materialComposition.forEach(entry => {
|
||||
@@ -1197,8 +1198,8 @@ const getDocumentData = async () => {
|
||||
}
|
||||
|
||||
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 === 'service') row.text = services.value.find(i => i.id === row.service).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 || ''
|
||||
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user