Skip to content

Commit

Permalink
clean filterManager when start vb
Browse files Browse the repository at this point in the history
Signed-off-by: Anan Zhuang <[email protected]>
  • Loading branch information
ananzh committed Apr 15, 2024
1 parent f997677 commit dfd281e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/plugins/vis_builder/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ export class VisBuilderPlugin

// make sure the index pattern list is up to date
pluginsStart.data.indexPatterns.clearCache();
// make sure the filterManager is refreshed
pluginsStart.data.query.filterManager.setFilters([]);
// make sure a default index pattern exists
// if not, the page will be redirected to management and visualize won't be rendered
// TODO: Add the redirect
Expand Down

0 comments on commit dfd281e

Please sign in to comment.