diff --git a/app/apps/core/static/js/edit/store/part.js b/app/apps/core/static/js/edit/store/part.js index 4f5546d6b3a35e135ec0cc5a25923343f3bed6c9..d5b285e33785271e4a2ed5e273bb3b472aac29ed 100644 --- a/app/apps/core/static/js/edit/store/part.js +++ b/app/apps/core/static/js/edit/store/part.js @@ -474,6 +474,14 @@ const partStore = { }, reset() { + // triggers delayed function immediately before the underlying data(pks) changes + if (this.debouncedRecalculateMasks) { + this.debouncedRecalculateMasks.flush(); + } + if (this.debouncedRecalculateOrdering) { + this.debouncedRecalculateOrdering.flush(); + } + // note: keep the transcriptions this.loaded = false; this.pk = null;