Skip to content

Commit

Permalink
Update src/plugins/kibana_utils/common/persistable_state/migrate_to_l…
Browse files Browse the repository at this point in the history
…atest.ts
  • Loading branch information
streamich committed Jun 30, 2021
1 parent 21125a3 commit 1e64da8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ export function migrateToLatest<S extends SerializableState>(
[state, oldVersion]: VersionedState
): VersionedState<S> {
const versions = Object.keys(migrations || {})
.sort(compare)
.filter((v) => compare(v, oldVersion) > 0);
.filter((v) => compare(v, oldVersion) > 0)
.sort(compare);

if (!versions.length) return [state, oldVersion] as VersionedState<S>;

Expand Down

0 comments on commit 1e64da8

Please sign in to comment.