Skip to content

Commit 76a4ae0

Browse files
committed
clear the attachment list if a feature is not selected
1 parent 4d5dfa8 commit 76a4ae0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/esri/samples/editing/edit_feature_attachments/EditFeatureAttachmentsSample.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ public void start(Stage stage) throws Exception {
146146
// clear previous results
147147
featureLayer.clearSelection();
148148
addAttachmentButton.setDisable(true);
149+
attachmentList.getItems().clear();
149150

150151
// get the clicked feature
151152
ListenableFuture<IdentifyLayerResult> results = mapView.identifyLayerAsync(featureLayer, point, 1, false);

0 commit comments

Comments
 (0)