diff --git a/tensorflow/tensorboard/components/tf_dashboard_common/tf-multi-checkbox.html b/tensorflow/tensorboard/components/tf_dashboard_common/tf-multi-checkbox.html
index bc15312fc3aecd..be27c353c39ed0 100644
--- a/tensorflow/tensorboard/components/tf_dashboard_common/tf-multi-checkbox.html
+++ b/tensorflow/tensorboard/components/tf_dashboard_common/tf-multi-checkbox.html
@@ -183,6 +183,7 @@
// if undefined, default value (enable for first k runs, disable after).
type: Object,
value: TF.URIStorage.getObjectInitializer('runSelectionState', {}),
+ observer: "_storeRunToIsCheckedMapping",
},
// (Allows state to persist across regex filtering)
outSelected: {
@@ -230,7 +231,6 @@
},
observers: [
"_setIsolatorIcon(runSelectionState, names)",
- "_storeRunToIsCheckedMapping(runSelectionState)",
],
_storeRunToIsCheckedMapping: TF.URIStorage.getObjectObserver('runSelectionState', {}),
_makeRegex: function(regex) {
diff --git a/tensorflow/tensorboard/dist/tf-tensorboard.html b/tensorflow/tensorboard/dist/tf-tensorboard.html
index 2a0a029ffa937c..656a69f836c310 100644
--- a/tensorflow/tensorboard/dist/tf-tensorboard.html
+++ b/tensorflow/tensorboard/dist/tf-tensorboard.html
@@ -3325,6 +3325,7 @@
[[name]]
// if undefined, default value (enable for first k runs, disable after).
type: Object,
value: TF.URIStorage.getObjectInitializer('runSelectionState', {}),
+ observer: "_storeRunToIsCheckedMapping",
},
// (Allows state to persist across regex filtering)
outSelected: {
@@ -3373,24 +3374,7 @@ [[name]]
},
observers: [
"_setIsolatorIcon(runSelectionState, names)",
- "_storeRunToIsCheckedMappingWithDefault(runSelectionState, namesMatchingRegex)",
],
- _storeRunToIsCheckedMappingWithDefault() {
- var runSelectionStateIsDefault = Object.keys(this.runSelectionState).length == 0;
- if (runSelectionStateIsDefault || this.namesMatchingRegex == null) {
- return;
- }
- var _this = this;
- var allToggledOn = this.namesMatchingRegex
- .every(function(n) {return _this.runSelectionState[n]});
- var allToggledOff = this.namesMatchingRegex
- .every(function(n) {return !_this.runSelectionState[n]});
- var defaultOff = this.namesMatchingRegex.length > this.maxRunsToEnableByDefault;
- if (defaultOff && allToggledOff || !defaultOff && allToggledOn) {
- this.runSelectionState = {};
- }
- this._storeRunToIsCheckedMapping(this.runSelectionState);
- },
_storeRunToIsCheckedMapping: TF.URIStorage.getObjectObserver('runSelectionState', {}),
_makeRegex: function(regex) {
try {