Skip to content

Commit a2ab345

Browse files
author
mmiscool
committed
Make history widget update on import or code snippet run
1 parent 9644e4d commit a2ab345

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/UI/HistoryWidget.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,10 @@ export class HistoryWidget extends HistoryCollectionWidget {
223223
}
224224

225225
#afterPartHistoryMutated() {
226-
this._idsSignature = this.#computeIdsSignature();
226+
const nextIdsSignature = this.#computeIdsSignature();
227+
const idsChanged = nextIdsSignature !== this._idsSignature;
228+
this._idsSignature = nextIdsSignature;
229+
if (idsChanged) this.render();
227230
this._syncHeaderState(true);
228231
this.#refreshOpenForms();
229232
this._syncFeatureDimensionOverlay();

0 commit comments

Comments
 (0)