Skip to content

Commit

Permalink
[Discover] Fix hide chart button (#110779)
Browse files Browse the repository at this point in the history
* [Discover] fix hide chart button

* [Discover] update tests

* [Discover] fix functional

* [Discover] remove hideChart from the URL it is not true

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
  • Loading branch information
dimaanj and kibanamachine authored Sep 7, 2021
1 parent 95b88cc commit ca79fb1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ describe('getStateDefaults', () => {
"default_column",
],
"filters": undefined,
"hideChart": undefined,
"index": "index-pattern-with-timefield-id",
"interval": "auto",
"query": undefined,
Expand Down Expand Up @@ -54,6 +55,7 @@ describe('getStateDefaults', () => {
"default_column",
],
"filters": undefined,
"hideChart": undefined,
"index": "the-index-pattern-id",
"interval": "auto",
"query": undefined,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export function getStateDefaults({
index: indexPattern!.id,
interval: 'auto',
filters: cloneDeep(searchSource.getOwnField('filter')),
hideChart: undefined,
} as AppState;
if (savedSearch.grid) {
defaultState.grid = savedSearch.grid;
Expand Down

0 comments on commit ca79fb1

Please sign in to comment.