Skip to content

Commit

Permalink
Fixing issue where the default loader isnt displayed
Browse files Browse the repository at this point in the history
  • Loading branch information
spong committed Dec 4, 2019
1 parent efff778 commit 4638fbb
Showing 1 changed file with 22 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,30 +153,28 @@ const StatefulEventsViewerComponent = React.memo<Props>(

return (
<div onMouseEnter={handleOnMouseEnter} onMouseLeave={handleOnMouseLeave}>
{browserFields && indexPatterns && (
<EventsViewer
browserFields={browserFields}
columns={defaultModel.columns}
id={id}
dataProviders={dataProviders!}
end={end}
filters={{ ...filters, ...defaultFilters }}
headerFilterGroup={headerFilterGroup}
indexPattern={indexPatterns ?? {}}
isLive={isLive}
itemsPerPage={itemsPerPage!}
itemsPerPageOptions={itemsPerPageOptions!}
kqlMode={kqlMode}
onChangeItemsPerPage={onChangeItemsPerPage}
query={query}
showInspect={showInspect}
start={start}
sort={sort!}
timelineTypeContext={timelineTypeContext}
toggleColumn={toggleColumn}
utilityBar={utilityBar}
/>
)}
<EventsViewer
browserFields={browserFields ?? {}}
columns={defaultModel.columns}
id={id}
dataProviders={dataProviders!}
end={end}
filters={{ ...filters, ...defaultFilters }}
headerFilterGroup={headerFilterGroup}
indexPattern={indexPatterns ?? { fields: [], title: '' }}
isLive={isLive}
itemsPerPage={itemsPerPage!}
itemsPerPageOptions={itemsPerPageOptions!}
kqlMode={kqlMode}
onChangeItemsPerPage={onChangeItemsPerPage}
query={query}
showInspect={showInspect}
start={start}
sort={sort!}
timelineTypeContext={timelineTypeContext}
toggleColumn={toggleColumn}
utilityBar={utilityBar}
/>
</div>
);
},
Expand Down

0 comments on commit 4638fbb

Please sign in to comment.