Skip to content

Commit be3fafd

Browse files
Fix property names
1 parent c60f50e commit be3fafd

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

src/client/cypress/e2e/detailPage/boreholeform.cy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ describe("Test for the borehole form.", () => {
9292
setSelect("depthPrecisionId", 1);
9393
setSelect("statusId", 1);
9494
setSelect("lithologyTopBedrockId", 1);
95-
setSelect("lithostratigraphyId", 1);
96-
setSelect("chronostratigraphyId", 1);
95+
setSelect("lithostratigraphyTopBedrockId", 1);
96+
setSelect("chronostratigraphyTopBedrockId", 1);
9797
setSelect("hasGroundwater", 1);
9898

9999
setInput("totalDepth", 700);

src/client/src/api/borehole.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ export interface Identifier extends BasicIdentifier {
1818

1919
export interface BoreholeV2 {
2020
lithologyTopBedrockId: number;
21-
lithostratigraphyId: number;
22-
chronostratigraphyId: number;
21+
lithostratigraphyTopBedrockId: number;
22+
chronostratigraphyTopBedrockId: number;
2323
hasGroundwater: boolean | null;
2424
topBedrockWeatheredMd: number;
2525
topBedrockFreshMd: number;

src/client/src/pages/detail/form/borehole/boreholeForm.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ export const BoreholeForm = forwardRef(({ borehole, editingEnabled, onSubmit }:
3333
topBedrockFreshMd: borehole.topBedrockFreshMd,
3434
topBedrockWeatheredMd: borehole.topBedrockWeatheredMd,
3535
lithologyTopBedrockId: borehole.lithologyTopBedrockId,
36-
lithostratigraphyId: borehole.lithostratigraphyId,
37-
chronostratigraphyId: borehole.chronostratigraphyId,
36+
lithostratigraphyTopBedrockId: borehole.lithostratigraphyTopBedrockId,
37+
chronostratigraphyTopBedrockId: borehole.chronostratigraphyTopBedrockId,
3838
hasGroundwater: borehole.hasGroundwater === true ? 1 : borehole.hasGroundwater === false ? 0 : 2,
3939
remarks: borehole.remarks,
4040
},
@@ -175,11 +175,11 @@ export const BoreholeForm = forwardRef(({ borehole, editingEnabled, onSubmit }:
175175
selected={borehole.lithologyTopBedrockId}
176176
/>
177177
<FormDomainSelect
178-
fieldName={"lithostratigraphyId"}
178+
fieldName={"lithostratigraphyTopBedrockId"}
179179
label={"lithostratigraphy_top_bedrock"}
180180
schemaName={"custom.lithostratigraphy_top_bedrock"}
181181
readonly={!editingEnabled}
182-
selected={borehole.lithostratigraphyId}
182+
selected={borehole.lithostratigraphyTopBedrockId}
183183
/>
184184
</FormContainer>
185185
<FormContainer direction="row">
@@ -188,7 +188,7 @@ export const BoreholeForm = forwardRef(({ borehole, editingEnabled, onSubmit }:
188188
label={"chronostratigraphy_top_bedrock"}
189189
schemaName={"custom.chronostratigraphy_top_bedrock"}
190190
readonly={!editingEnabled}
191-
selected={borehole.chronostratigraphyId}
191+
selected={borehole.chronostratigraphyTopBedrockId}
192192
/>
193193
<FormBooleanSelect
194194
canReset={false}

src/client/src/pages/detail/form/borehole/boreholePanelInterfaces.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ export interface BoreholeFormInputs {
2323
topBedrockFreshMd: number | null;
2424
topBedrockWeatheredMd: number | null;
2525
lithologyTopBedrockId: number;
26-
lithostratigraphyId: number;
27-
chronostratigraphyId: number;
26+
lithostratigraphyTopBedrockId: number;
27+
chronostratigraphyTopBedrockId: number;
2828
hasGroundwater: boolean | number | null;
2929
remarks: string;
3030
}

src/client/src/pages/overview/sidePanelContent/importer/importModalContent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const ImportModalContent = ({ setSelectedFile }: ImportContentProps) => {
5656
"StatusId;Remarks;TotalDepth;QtDepthId;TopBedrockFreshMd;" +
5757
"TopBedrockWeatheredMd;" +
5858
"HasGroundwater;LithologyTopBedrockId;" +
59-
"ChronostratigraphyId;LithostratigraphyId;",
59+
"ChronostratigraphyTopBedrockId;LithostratigraphyTopBedrockId;",
6060
)}
6161
</StackHalfWidth>
6262
<FileDropzone

0 commit comments

Comments
 (0)