Skip to content

Commit

Permalink
Fix observation create mapview update
Browse files Browse the repository at this point in the history
  • Loading branch information
newmanw committed May 6, 2022
1 parent 97ab24f commit 641bd13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mage/src/main/java/mil/nga/giat/mage/form/FormState.kt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class FormState(
}

companion object {
fun fromForm(id: Long? = null, remoteId: String? = null, eventId: String, form: Form, defaultForm: Form? = null): FormState {
fun fromForm(remoteId: String? = null, eventId: String, form: Form, defaultForm: Form? = null): FormState {
val defaultFields = defaultForm?.fields?.associateTo(mutableMapOf()) {
it.name to it.value
}
Expand All @@ -39,7 +39,7 @@ class FormState(
fields.add(fieldState)
}

return FormState(id, remoteId, eventId, form, fields)
return FormState(form.id, remoteId, eventId, form, fields)
}
}
}

0 comments on commit 641bd13

Please sign in to comment.