diff --git a/CHANGES.md b/CHANGES.md index 5f18ee2619b..9349c642442 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,8 +1,9 @@ # Change Log -#### next release (8.3.2) +#### next release 8.3.2 - Fixed a bug when restoring timefilter from a share link having more than one imagery item with the same base URL (but different layer names). +- Fix WPS duplicate display of analysis results when loaded through a share URL - [The next improvement] #### 8.3.1 - 2023-06-29 diff --git a/lib/Models/Workbench.ts b/lib/Models/Workbench.ts index c508fee8639..f1d5b90b8ce 100644 --- a/lib/Models/Workbench.ts +++ b/lib/Models/Workbench.ts @@ -34,7 +34,13 @@ export default class Workbench { return this._items.map(dereferenceModel); } set items(items: readonly BaseModel[]) { - this._items.spliceWithArray(0, this._items.length, items.slice()); + // Run items through a set to remove duplicates. + const setItems = new Set(items); + this._items.spliceWithArray( + 0, + this._items.length, + Array.from(setItems).slice() + ); } /**