Skip to content

Commit

Permalink
update no overall data message. remove unnecessary component prop
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarezmelissa87 committed Feb 16, 2021
1 parent feb0062 commit 1e10d7a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,9 @@ import { FormattedMessage } from '@kbn/i18n/react';

import { EuiEmptyPrompt } from '@elastic/eui';

export const ExplorerNoResultsFound = ({
hasResults,
hasResultsWithAnomalies,
selectedJobsRunning,
}) => {
const resultsHaveNoAnomalies = hasResults === true && hasResultsWithAnomalies === false;
const noResults = hasResults === false && hasResultsWithAnomalies === false;
export const ExplorerNoResultsFound = ({ hasResults, selectedJobsRunning }) => {
const resultsHaveNoAnomalies = hasResults === true;
const noResults = hasResults === false;
return (
<EuiEmptyPrompt
iconType="iInCircle"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const NoOverallData: FC = () => {
return (
<FormattedMessage
id="xpack.ml.anomalySwimLane.noOverallDataMessage"
defaultMessage="No overall data found"
defaultMessage="No anomalies found in the overall bucket results for this time range"
/>
);
};
1 change: 0 additions & 1 deletion x-pack/plugins/ml/public/application/explorer/explorer.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,6 @@ export class Explorer extends React.Component {
<ExplorerPage jobSelectorProps={jobSelectorProps}>
<ExplorerNoResultsFound
hasResults={hasResults}
hasResultsWithAnomalies={hasResultsWithAnomalies}
selectedJobsRunning={selectedJobsRunning}
/>
</ExplorerPage>
Expand Down

0 comments on commit 1e10d7a

Please sign in to comment.