Skip to content

Commit

Permalink
cleanup merge
Browse files Browse the repository at this point in the history
  • Loading branch information
parkiino committed Apr 21, 2020
1 parent dbdec58 commit 0f69d0c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const hasSelectedHost: (state: Immutable<HostState>) => boolean = createS
);

/** What policy details panel view to show */
export const showView: (state: HostListState) => 'policy_response' | 'details' = createSelector(
export const showView: (state: HostState) => 'policy_response' | 'details' = createSelector(
uiQueryParams,
searchParams => {
return searchParams.show === 'policy_response' ? 'policy_response' : 'details';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const HostIds = styled(EuiListGroupItem)`

export const HostDetails = memo(({ details }: { details: HostMetadata }) => {
const { appId, appPath, url } = useHostLogsUrl(details.host.id);
const queryParams = useHostListSelector(uiQueryParams);
const queryParams = useHostSelector(uiQueryParams);
const history = useHistory();
const detailsResultsUpper = useMemo(() => {
return [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const HostDetailsFlyout = memo(() => {
<EuiFlyoutHeader hasBorder>
<EuiTitle size="s">
<h2 data-test-subj="hostDetailsFlyoutTitle">
{loading ? <EuiLoadingContent lines={1} /> : details.host.hostname}
{loading ? <EuiLoadingContent lines={1} /> : details?.host?.hostname}
</h2>
</EuiTitle>
</EuiFlyoutHeader>
Expand Down

0 comments on commit 0f69d0c

Please sign in to comment.