Skip to content

Commit

Permalink
bug: update fallback coordinates no model area change.
Browse files Browse the repository at this point in the history
  • Loading branch information
mheggelund committed Feb 26, 2024
1 parent 915e59e commit 27a4196
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/AreaCoordinates/AreaCoordinates.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,10 @@ export const AreaCoordinates = ({

setActiveArea(changes.selectedItems[0]);

if (fallbackAreaCoordinate === undefined) {
if (
fallbackAreaCoordinate === undefined ||
activeArea.modelAreaTypeId !== fallbackAreaCoordinate.modelAreaId
) {
setfallbackAreaCoordinate(cloneDeep(newState));
}

Expand Down

0 comments on commit 27a4196

Please sign in to comment.