Skip to content

Commit

Permalink
Fix Eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
JulesVautier-io committed Jun 20, 2024
1 parent cb9c2c7 commit eb3ffe5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ export function MetricKind(props: SearchComponentProps) {
}

export function AggregationKind(props: SearchComponentProps) {
props;
const defaultAgg = {
histogram: {
interval: "1d",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ export function AggregationResult({searchResponse}: {searchResponse: SearchRespo
data: line.value,
};
});
series;
// we don't customize colors because we would need a full palette.
return (
<LineChart
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,6 @@ interface SearchResultProps {
}

export default function SearchResult(props: SearchResultProps) {
if (props.queryRunning) {
return <Loader />;
}
if (props.searchError !== null) {
return ErrorResponseDisplay(props.searchError);
}

const result = useMemo(() => {
if (props.searchResponse == null || props.index == null) {
return null;
Expand All @@ -73,6 +66,14 @@ export default function SearchResult(props: SearchResultProps) {
}
}, [props.searchResponse, props.index]);

if (props.queryRunning) {
return <Loader />;
}

if (props.searchError !== null) {
return ErrorResponseDisplay(props.searchError);
}

if (props.searchResponse == null || props.index == null) {
return <></>;
}
Expand Down

0 comments on commit eb3ffe5

Please sign in to comment.