From 2ef0aa02d773e151a6663dbc35f74137eb67b3e1 Mon Sep 17 00:00:00 2001 From: David Manthey Date: Mon, 12 Jun 2023 15:52:27 -0400 Subject: [PATCH] Fix a scope issue when deleting metadata --- girder/girder_large_image/web_client/views/metadataWidget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/girder/girder_large_image/web_client/views/metadataWidget.js b/girder/girder_large_image/web_client/views/metadataWidget.js index cbf49f89d..761f6cea6 100644 --- a/girder/girder_large_image/web_client/views/metadataWidget.js +++ b/girder/girder_large_image/web_client/views/metadataWidget.js @@ -244,7 +244,7 @@ var MetadatumEditWidget = View.extend({ escapedHtml: true, yesText: 'Delete', confirmCallback: () => { - this.item.removeMetadata(this.key, function () { + this.item.removeMetadata(this.key, () => { metadataList.remove(); this.parentView.parentView.trigger('li-metadata-widget-update', {}); }, null, {