From 1a065b649cb114f0b4551eb2cfe0ef50e91594a5 Mon Sep 17 00:00:00 2001 From: florianfederspiel Date: Thu, 22 Jan 2026 14:48:35 +0100 Subject: [PATCH] Fixed #71 --- frontend/stores/data.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/stores/data.js b/frontend/stores/data.js index 60e7c5c..6a3e686 100644 --- a/frontend/stores/data.js +++ b/frontend/stores/data.js @@ -230,7 +230,7 @@ export const useDataStore = defineStore('data', () => { label: "Anrede", inputType: "text", inputChangeFunction: function (row) { - row.name = `${row.salutation.length > 0 ? (row.salutation + " ") : ""}${row.title.length > 0 ? (row.title + " ") : ""}${row.firstname.length > 0 ? (row.firstname + " ") : ""}${row.lastname}`; + row.name = `${row.salutation ? (row.salutation + " ") : ""}${row.title ? (row.title + " ") : ""}${row.firstname ? (row.firstname + " ") : ""}${row.lastname}`; }, disabledFunction: function (item) { return item.isCompany @@ -246,7 +246,7 @@ export const useDataStore = defineStore('data', () => { label: "Titel", inputType: "text", inputChangeFunction: function (row) { - row.name = `${row.salutation.length > 0 ? (row.salutation + " ") : ""}${row.title.length > 0 ? (row.title + " ") : ""}${row.firstname.length > 0 ? (row.firstname + " ") : ""}${row.lastname}`; + row.name = `${row.salutation ? (row.salutation + " ") : ""}${row.title ? (row.title + " ") : ""}${row.firstname ? (row.firstname + " ") : ""}${row.lastname}`; }, disabledFunction: function (item) { return item.isCompany @@ -261,7 +261,7 @@ export const useDataStore = defineStore('data', () => { title: true, inputType: "text", inputChangeFunction: function (row) { - row.name = `${row.salutation.length > 0 ? (row.salutation + " ") : ""}${row.title.length > 0 ? (row.title + " ") : ""}${row.firstname.length > 0 ? (row.firstname + " ") : ""}${row.lastname}`; + row.name = `${row.salutation ? (row.salutation + " ") : ""}${row.title ? (row.title + " ") : ""}${row.firstname ? (row.firstname + " ") : ""}${row.lastname}`; }, disabledFunction: function (item) { return item.isCompany @@ -276,7 +276,7 @@ export const useDataStore = defineStore('data', () => { title: true, inputType: "text", inputChangeFunction: function (row) { - row.name = `${row.salutation.length > 0 ? (row.salutation + " ") : ""}${row.title.length > 0 ? (row.title + " ") : ""}${row.firstname.length > 0 ? (row.firstname + " ") : ""}${row.lastname}`; + row.name = `${row.salutation ? (row.salutation + " ") : ""}${row.title ? (row.title + " ") : ""}${row.firstname ? (row.firstname + " ") : ""}${row.lastname}`; }, disabledFunction: function (item) { return item.isCompany