Skip to content

Commit

Permalink
Don't display message field in cell renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
davismcphee committed May 19, 2024
1 parent a640bae commit 65eed93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ import {
import { DiscoverTopNavInline } from './components/top_nav/discover_topnav_inline';
import { DiscoverStateContainer, LoadParams } from './state_management/discover_state';
import { DataSourceType, isDataSourceType } from '../../../common/data_sources';
import { ProfilesProvider, rootProfileService } from '../../context_awareness';
import { ComposableProfile } from '../../context_awareness/composable_profile';
import { ComposableProfile, ProfilesProvider, rootProfileService } from '../../context_awareness';

const DiscoverMainAppMemoized = memo(DiscoverMainApp);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,19 +108,11 @@ export const logsDataSourceProfileProvider: DataSourceProfileProvider = {
);
},
message: (props) => {
const { field, value } = getMessageFieldWithFallbacks(
const { value } = getMessageFieldWithFallbacks(
props.row.flattened as unknown as LogDocumentOverview
);

if (!value) {
return <span css={{ color: euiThemeVars.euiTextSubduedColor }}>(None)</span>;
}

return (
<>
<strong>{field}:</strong> <span>{value}</span>
</>
);
return value || <span css={{ color: euiThemeVars.euiTextSubduedColor }}>(None)</span>;
},
}),
},
Expand Down

0 comments on commit 65eed93

Please sign in to comment.