mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Persists current kuery value from URL if present (#35795)
This commit is contained in:
parent
4ad96bd5eb
commit
b4efc956cd
1 changed files with 7 additions and 1 deletions
|
@ -68,11 +68,17 @@ function getQueryWithRisonParams(location: Location, query: RisonDecoded = {}) {
|
|||
const encodedG = rison.encode(combinedG);
|
||||
const encodedA = query._a ? rison.encode(query._a) : '';
|
||||
|
||||
return {
|
||||
const queryWithRisonParams: QueryParams = {
|
||||
...query,
|
||||
_g: encodedG,
|
||||
_a: encodedA
|
||||
};
|
||||
|
||||
if (currentQuery.kuery) {
|
||||
queryWithRisonParams.kuery = currentQuery.kuery;
|
||||
}
|
||||
|
||||
return queryWithRisonParams;
|
||||
}
|
||||
|
||||
export interface KibanaHrefArgs {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue