Skip to content

Commit

Permalink
remove featureFormDefinition validation
Browse files Browse the repository at this point in the history
  • Loading branch information
shubham7109 committed Feb 5, 2025
1 parent 4390fa8 commit 02aee17
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,7 @@ class MapViewModel(application: Application) : AndroidViewModel(application) {
).onSuccess { results ->
try {
results.forEach { result ->
result.geoElements.firstOrNull {
it is ArcGISFeature && (it.featureTable?.layer as? FeatureLayer)?.featureFormDefinition != null
}?.let {
result.geoElements.firstOrNull { it is ArcGISFeature }?.let {
val feature = it as ArcGISFeature
val layer = feature.featureTable!!.layer as FeatureLayer
val featureForm = FeatureForm(feature)
Expand Down

0 comments on commit 02aee17

Please sign in to comment.