diff --git a/polygerrit-ui/app/elements/shared/gr-storage/gr-storage.js b/polygerrit-ui/app/elements/shared/gr-storage/gr-storage.js index 62080a1768..c425609e02 100644 --- a/polygerrit-ui/app/elements/shared/gr-storage/gr-storage.js +++ b/polygerrit-ui/app/elements/shared/gr-storage/gr-storage.js @@ -72,7 +72,7 @@ }, eraseEditableContentItem(key) { - this._storage.removeItem(key); + this._storage.removeItem(this._getEditableContentKey(key)); }, getPreferences() { diff --git a/polygerrit-ui/app/elements/shared/gr-storage/gr-storage_test.html b/polygerrit-ui/app/elements/shared/gr-storage/gr-storage_test.html index b7d73d43ae..6b89af2654 100644 --- a/polygerrit-ui/app/elements/shared/gr-storage/gr-storage_test.html +++ b/polygerrit-ui/app/elements/shared/gr-storage/gr-storage_test.html @@ -188,7 +188,7 @@ limitations under the License. // eraseEditableContentItem performs as expected. element.eraseEditableContentItem(key); - assert.isNotOk(element._storage.getItem(key)); + assert.isNotOk(element._storage.getItem(computedKey)); }); });