diff --git a/src/ClientApp/cypress/fixtures/standorteGemeinde.json b/src/ClientApp/cypress/fixtures/standorteGemeinde.json index 755e884..8cbe622 100644 --- a/src/ClientApp/cypress/fixtures/standorteGemeinde.json +++ b/src/ClientApp/cypress/fixtures/standorteGemeinde.json @@ -197,8 +197,8 @@ "codeSchichtId": 20024, "codeSchicht": { "id": 20024, - "kurztext": "Avon Intelligent Cotton Keyboard", - "text": "http://earl.com/front-line/pennsylvania/buckinghamshire" + "kurztext": "http://earl.com/front-line/pennsylvania/buckinghamshire", + "text": "Avon Intelligent Cotton Keyboard" }, "tiefe": 0.19328074, "qualitaetId": 103, diff --git a/src/ClientApp/src/components/BohrprofilForm.js b/src/ClientApp/src/components/BohrprofilForm.js index 13f7b2c..96db3ae 100644 --- a/src/ClientApp/src/components/BohrprofilForm.js +++ b/src/ClientApp/src/components/BohrprofilForm.js @@ -480,7 +480,7 @@ export default function BohrprofilForm(props) { {currentBohrprofil.schichten.map((schicht) => ( {schicht.tiefe} - {schicht.codeSchicht?.kurztext} + {schicht.codeSchicht?.text} onEditSchicht(schicht)} name="edit-button" color="primary"> diff --git a/src/ClientApp/src/components/SchichtForm.js b/src/ClientApp/src/components/SchichtForm.js index fff9fc1..b028a67 100644 --- a/src/ClientApp/src/components/SchichtForm.js +++ b/src/ClientApp/src/components/SchichtForm.js @@ -134,7 +134,7 @@ export default function SchichtForm(props) { sx={{ width: "47%" }} options={codeSchichten.map((c) => c.id).sort((a, b) => a - b)} value={field.value} - getOptionLabel={(option) => codeSchichten.find((c) => c.id === option)?.kurztext} + getOptionLabel={(option) => codeSchichten.find((c) => c.id === option)?.text} onChange={(_, data) => field.onChange(data)} autoHighlight renderInput={(params) => (