Skip to content

Commit

Permalink
Fix persisting alignments "color by" and "filter by" settings in snap…
Browse files Browse the repository at this point in the history
…shots/session shares/page reloads (#4732)
  • Loading branch information
cmdcolin authored Dec 19, 2024
1 parent 10ffbac commit 4af106a
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -676,11 +676,12 @@ export function SharedLinearPileupDisplayMixin(
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
if (snap) {
// @ts-expect-error
const { colorBy, filterBy, ...rest } = snap
const { colorBy, colorBySetting, filterBySetting, filterBy, ...rest } =
snap
return {
...rest,
filterBySetting: filterBy,
colorBySetting: colorBy,
filterBySetting: filterBySetting || filterBy,
colorBySetting: colorBySetting || colorBy,
}
}
return snap
Expand Down

0 comments on commit 4af106a

Please sign in to comment.