mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
* Fixes #40251 - Change fetchPolicy for Inventory View * Refactoring resposne
This commit is contained in:
parent
69cc616823
commit
c8efddb38e
1 changed files with 3 additions and 3 deletions
|
@ -44,7 +44,7 @@ export const WithWaffleNodes = ({
|
|||
}: WithWaffleNodesProps) => (
|
||||
<Query<WaffleNodesQuery.Query, WaffleNodesQuery.Variables>
|
||||
query={waffleNodesQuery}
|
||||
fetchPolicy="no-cache"
|
||||
fetchPolicy="network-only"
|
||||
notifyOnNetworkStatusChange
|
||||
variables={{
|
||||
sourceId,
|
||||
|
@ -55,11 +55,11 @@ export const WithWaffleNodes = ({
|
|||
filterQuery,
|
||||
}}
|
||||
>
|
||||
{({ data, loading, refetch }) =>
|
||||
{({ data, loading, refetch, error }) =>
|
||||
children({
|
||||
loading,
|
||||
nodes:
|
||||
data && data.source && data.source.snapshot && data.source.snapshot.nodes
|
||||
!error && data && data.source && data.source.snapshot && data.source.snapshot.nodes
|
||||
? data.source.snapshot.nodes
|
||||
: [],
|
||||
refetch,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue