Skip to content

Commit

Permalink
Merge pull request #1203 from girder/fix-function
Browse files Browse the repository at this point in the history
Fix a scope issue when deleting metadata
  • Loading branch information
manthey authored Jun 12, 2023
2 parents 0c32a90 + 2ef0aa0 commit 4077f03
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand Down

0 comments on commit 4077f03

Please sign in to comment.