Skip to content

Commit

Permalink
fix some sidebar tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkime committed Jan 30, 2023
1 parent ff299a3 commit e430f12
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,8 @@ export function DiscoverSidebarComponent({
return null;
}

console.log('*** discover sidebar', fieldListFiltersProps);

return (
<EuiPageSideBar
className="dscSidebar"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ export function DiscoverSidebarResponsive(props: DiscoverSidebarResponsiveProps)
}
break;
case FetchStatus.COMPLETE:
if (isPlainRecordType || !props.useNewFieldsApi) {
if (!isPlainRecordType || !props.useNewFieldsApi) {
dispatchSidebarStateAction({
type: DiscoverSidebarReducerActionType.DOCUMENTS_LOADED,
payload: {
Expand All @@ -224,9 +224,7 @@ export function DiscoverSidebarResponsive(props: DiscoverSidebarResponsiveProps)
isPlainRecord: isPlainRecordType,
},
});
}
/*
if (isPlainRecordType) {
} else {
dispatchSidebarStateAction({
type: DiscoverSidebarReducerActionType.DOCUMENTS_LOADED,
payload: {
Expand All @@ -239,7 +237,7 @@ export function DiscoverSidebarResponsive(props: DiscoverSidebarResponsiveProps)
},
});
}
*/

break;
case FetchStatus.ERROR:
dispatchSidebarStateAction({
Expand Down

0 comments on commit e430f12

Please sign in to comment.