Skip to content

Commit

Permalink
fix PR comment
Browse files Browse the repository at this point in the history
Signed-off-by: ananzh <[email protected]>
  • Loading branch information
ananzh committed Aug 31, 2023
1 parent 99d7b03 commit df20e7c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export function ContextApp({
onSort={() => {}}
sort={sort}
rows={rows}
displayTimeColumn={displayTimeColumn || true}
displayTimeColumn={displayTimeColumn}
services={services}
isToolbarVisible={false}
isContextView={true}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const DiscoverTable = ({ history }: Props) => {
[filterManager, indexPattern]
);
const displayTimeColumn = useMemo(
() => !uiSettings.get(DOC_HIDE_TIME_COLUMN_SETTING, false) && indexPattern?.isTimeBased(),
() => !!(!uiSettings.get(DOC_HIDE_TIME_COLUMN_SETTING, false) && indexPattern?.isTimeBased()),
[indexPattern, uiSettings]
);

Expand Down Expand Up @@ -103,7 +103,7 @@ export const DiscoverTable = ({ history }: Props) => {
onSort={onSetSort}
sort={sort}
rows={rows}
displayTimeColumn={displayTimeColumn || true}
displayTimeColumn={displayTimeColumn}
services={services}
/>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ export const TopNav = ({ opts }: TopNavProps) => {
config={topNavLinks}
showSearchBar
showDatePicker={showDatePicker}
showSaveQuery
useDefaultBehaviors
setMenuMountPoint={opts.setHeaderActionMenu}
indexPatterns={indexPatterns}
Expand Down

0 comments on commit df20e7c

Please sign in to comment.