Skip to content

Commit

Permalink
Refresh file and map widget when prov edits change, #10633
Browse files Browse the repository at this point in the history
  • Loading branch information
chiatt committed Apr 22, 2024
1 parent 5070f4a commit 5923bf9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions arches/app/media/js/viewmodels/provisional-tile.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,16 @@ define([
self.selectedProvisionalEdit(val);
koMapping.fromJS(val['value'], self.selectedTile().data);
self.selectedTile().parent.params.handlers['tile-reset'].forEach(handler => handler(self.selectedTile()));
self.selectedTile().parent.widgets().forEach(
function(w){
var defaultconfig = w.widgetLookup[w.widget_id()].defaultconfig;
if (defaultconfig.rerender === true && self.selectedTile().parent.allowProvisionalEditRerender() === true) {
w.label.valueHasMutated();
}
});
if (self.selectedTile().parent.triggerUpdate) {
self.selectedTile().parent.triggerUpdate();
}
}
};

Expand Down

0 comments on commit 5923bf9

Please sign in to comment.