Skip to content

Commit 35e7de6

Browse files
Geospatial getContextValueFromFormValue
1 parent 937a503 commit 35e7de6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/server/plugins/engine/components/GeospatialField.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ export class GeospatialField extends FormComponent {
6969

7070
getContextValueFromFormValue(
7171
features: GeospatialState | undefined
72-
): string | null {
73-
return features ? JSON.stringify(features) : null
72+
): string[] | null {
73+
return features?.map(({ id }) => id) ?? null
7474
}
7575

7676
getContextValueFromState(state: FormSubmissionState) {

0 commit comments

Comments
 (0)