Skip to content

Commit

Permalink
[Discover][Bug] Migrate global state
Browse files Browse the repository at this point in the history
Issue Resolve
opensearch-project#6766

Signed-off-by: Anan Zhuang <[email protected]>
  • Loading branch information
ananzh committed May 13, 2024
1 parent 8c99ce4 commit 60944e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/plugins/discover/public/migrate_state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@ export function migrateUrlState(oldPath: string, newPath = '/'): string {
indexPattern: index,
},
};
const _g = getStateFromOsdUrl<any>('_g', oldPath);

path = setStateToOsdUrl('_g', _g, { useHash: false }, path);
path = setStateToOsdUrl('_a', _a, { useHash: false }, path);
path = setStateToOsdUrl('_q', _q, { useHash: false }, path);

Expand Down

0 comments on commit 60944e1

Please sign in to comment.