Skip to content

Commit

Permalink
Fixes Changing to another version is not possible when version compar…
Browse files Browse the repository at this point in the history
…e is already active (#113)

Fixed : #1487449
  • Loading branch information
CalebGerman authored Jul 26, 2024
1 parent 1bf096f commit 80c851f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions packages/changed-elements-react/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,20 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## Fixes

* `VersionCompareSelectWidget` V2 will now end the active comparison and start a new one once a new one is triggered instead of doing a no-op on starting a new comparison.

## [0.9.1](https://github.com/iTwin/changed-elements-react/tree/v0.9.1/packages/changed-elements-react) - 2024-07-10

## Fixes

* `VersionCompareSelectModal` V2 toast now fixed when opening and closing modal.

## [0.9.0](https://github.com/iTwin/changed-elements-react/tree/v0.9.0/packages/changed-elements-react) - 2024-07-03

## Minor changes

* `VersionCompareFeatureTracking` can now be fed to initialization options

## [0.8.0](https://github.com/iTwin/changed-elements-react/tree/v0.8.0/packages/changed-elements-react) - 2024-06-28

## Minor changes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export type ManagerStartComparisonV2Args = {

export const runManagerStartComparisonV2 = async (args: ManagerStartComparisonV2Args) => {
if (VersionCompare.manager?.isComparing) {
return;
await VersionCompare.manager?.stopComparison();
}
if (args.getToastsEnabled?.()) {
toastComparisonVisualizationStarting();
Expand Down

0 comments on commit 80c851f

Please sign in to comment.