diff --git a/graylog2-web-interface/src/components/errors/ReportedErrorBoundary.tsx b/graylog2-web-interface/src/components/errors/ReportedErrorBoundary.tsx
index 035971aef15f..1299cfb527af 100644
--- a/graylog2-web-interface/src/components/errors/ReportedErrorBoundary.tsx
+++ b/graylog2-web-interface/src/components/errors/ReportedErrorBoundary.tsx
@@ -82,7 +82,6 @@ const ReportedErrorBoundary = ({ children }: Props) => {
return ;
}
- // eslint-disable-next-line react/jsx-no-useless-fragment
return <>{children}>;
};
diff --git a/graylog2-web-interface/src/components/event-definitions/event-definitions/EventDefinitionLink.tsx b/graylog2-web-interface/src/components/event-definitions/event-definitions/EventDefinitionLink.tsx
index 6638060f6b0b..e1c243542eab 100644
--- a/graylog2-web-interface/src/components/event-definitions/event-definitions/EventDefinitionLink.tsx
+++ b/graylog2-web-interface/src/components/event-definitions/event-definitions/EventDefinitionLink.tsx
@@ -37,7 +37,7 @@ const EventDefinitionLink = ({ event, eventDefinitionContext }: Props) => {
return isPermitted(currentUser.permissions,
`eventdefinitions:edit:${eventDefinitionContext.id}`)
? {eventDefinitionContext.title}
- // eslint-disable-next-line react/jsx-no-useless-fragment
+
: <>{eventDefinitionContext.title}>;
};
diff --git a/graylog2-web-interface/src/components/sidecars/failure-tracking/SidecarFailureTrackingRows.tsx b/graylog2-web-interface/src/components/sidecars/failure-tracking/SidecarFailureTrackingRows.tsx
index a132c4b742f9..5c9392972bef 100644
--- a/graylog2-web-interface/src/components/sidecars/failure-tracking/SidecarFailureTrackingRows.tsx
+++ b/graylog2-web-interface/src/components/sidecars/failure-tracking/SidecarFailureTrackingRows.tsx
@@ -61,7 +61,7 @@ const SidecarFailureTrackingRows = ({ sidecar, collectors, onShowDetails }: Prop
const getCollectorInformation = (collectorId: string) => collectors.find((collector) => collector.id === collectorId);
return (
- // eslint-disable-next-line react/jsx-no-useless-fragment
+
<>
{collectorStatusList?.filter((collector) => collector.status === SidecarStatusEnum.FAILING).map((collector) => {
const collectorData = getCollectorInformation(collector.collector_id);
diff --git a/graylog2-web-interface/src/views/components/actions/ActionMenuItem.tsx b/graylog2-web-interface/src/views/components/actions/ActionMenuItem.tsx
index 279fb448bc32..7b6c47c82f14 100644
--- a/graylog2-web-interface/src/views/components/actions/ActionMenuItem.tsx
+++ b/graylog2-web-interface/src/views/components/actions/ActionMenuItem.tsx
@@ -83,7 +83,6 @@ const ActionTitle = ({ action, handlerArgs }: { action: ActionDefinition, handle
}
}
- // eslint-disable-next-line react/jsx-no-useless-fragment
return <>{action.title}>;
};
diff --git a/graylog2-web-interface/src/views/components/dashboard/IfDashboard.tsx b/graylog2-web-interface/src/views/components/dashboard/IfDashboard.tsx
index 7ab3073c44dd..7318125dc476 100644
--- a/graylog2-web-interface/src/views/components/dashboard/IfDashboard.tsx
+++ b/graylog2-web-interface/src/views/components/dashboard/IfDashboard.tsx
@@ -26,7 +26,6 @@ type Props = {
const IfDashboard = ({ children }: Props) => {
const viewType = useViewType();
- // eslint-disable-next-line react/jsx-no-useless-fragment
return viewType === View.Type.Dashboard ? <>{children}> : null;
};
diff --git a/graylog2-web-interface/src/views/components/datatable/Headers.tsx b/graylog2-web-interface/src/views/components/datatable/Headers.tsx
index ff8dbe7a92ce..072280a2b2a5 100644
--- a/graylog2-web-interface/src/views/components/datatable/Headers.tsx
+++ b/graylog2-web-interface/src/views/components/datatable/Headers.tsx
@@ -206,7 +206,6 @@ const ColumnPivotFieldsHeaders = ({ fields, pivots, values, series, offset = 1,
);
});
- // eslint-disable-next-line react/jsx-no-useless-fragment
return <>{headerRows}>;
};
diff --git a/graylog2-web-interface/src/views/components/messagelist/MessageTableEntry.tsx b/graylog2-web-interface/src/views/components/messagelist/MessageTableEntry.tsx
index 47aa50f6ab66..d3ded2899371 100644
--- a/graylog2-web-interface/src/views/components/messagelist/MessageTableEntry.tsx
+++ b/graylog2-web-interface/src/views/components/messagelist/MessageTableEntry.tsx
@@ -114,7 +114,7 @@ const fieldType = (fieldName, { decoration_stats: decorationStats }: {
const Strong = ({ children, strong = false }: React.PropsWithChildren<{ strong: boolean }>) => (strong
? {children}
- // eslint-disable-next-line react/jsx-no-useless-fragment
+
: <>{children}>);
const MessageTableEntry = ({
diff --git a/graylog2-web-interface/src/views/components/search/IfSearch.tsx b/graylog2-web-interface/src/views/components/search/IfSearch.tsx
index 2f8d5f86d21f..44cb078af122 100644
--- a/graylog2-web-interface/src/views/components/search/IfSearch.tsx
+++ b/graylog2-web-interface/src/views/components/search/IfSearch.tsx
@@ -26,7 +26,6 @@ type Props = {
const IfSearch = ({ children }: Props) => {
const viewType = useViewType();
- // eslint-disable-next-line react/jsx-no-useless-fragment
return viewType === View.Type.Search ? <>{children}> : null;
};
diff --git a/graylog2-web-interface/src/views/components/searchbar/time-range-filter/time-range-picker/TabKeywordTimeRange.tsx b/graylog2-web-interface/src/views/components/searchbar/time-range-filter/time-range-picker/TabKeywordTimeRange.tsx
index 9ea84cd80703..0e5973e85fa5 100644
--- a/graylog2-web-interface/src/views/components/searchbar/time-range-filter/time-range-picker/TabKeywordTimeRange.tsx
+++ b/graylog2-web-interface/src/views/components/searchbar/time-range-filter/time-range-picker/TabKeywordTimeRange.tsx
@@ -55,7 +55,6 @@ const debouncedTestNaturalDate = debounceWithPromise((
const TimePreview = ({ dateTime, isLoading }: { dateTime: string, isLoading: boolean }) => {
if (!dateTime || isLoading) {
- // eslint-disable-next-line react/jsx-no-useless-fragment
return <>{EMPTY_RANGE}>;
}
diff --git a/graylog2-web-interface/src/views/components/visualizations/PlotLegend.tsx b/graylog2-web-interface/src/views/components/visualizations/PlotLegend.tsx
index b72b4ad364cb..c27eb9e659e4 100644
--- a/graylog2-web-interface/src/views/components/visualizations/PlotLegend.tsx
+++ b/graylog2-web-interface/src/views/components/visualizations/PlotLegend.tsx
@@ -188,7 +188,6 @@ const PlotLegend = ({
const _labelFields = useMemo(() => labelFields(config), [config, labelFields]);
if (!neverHide && (!focusedWidget || !focusedWidget.editing) && series.length <= 1 && columnPivots.length <= 0) {
- // eslint-disable-next-line react/jsx-no-useless-fragment
return <>{children}>;
}
diff --git a/graylog2-web-interface/src/views/components/widgets/SearchQueryExecutionInfoHelper.tsx b/graylog2-web-interface/src/views/components/widgets/SearchQueryExecutionInfoHelper.tsx
index 598127088d69..dbd9fc3773e5 100644
--- a/graylog2-web-interface/src/views/components/widgets/SearchQueryExecutionInfoHelper.tsx
+++ b/graylog2-web-interface/src/views/components/widgets/SearchQueryExecutionInfoHelper.tsx
@@ -131,7 +131,7 @@ const SearchQueryExecutionInfoHelper = ({ currentWidgetMapping, children }: Prop
{isEmpty(result) ? No query executed yet. : }
- // eslint-disable-next-line react/jsx-no-useless-fragment
+
) : <>{children}>;
};
diff --git a/graylog2-web-interface/src/views/components/widgets/events/EventsList/EventDetails.tsx b/graylog2-web-interface/src/views/components/widgets/events/EventsList/EventDetails.tsx
index af3f96ddcf7e..402e448d3788 100644
--- a/graylog2-web-interface/src/views/components/widgets/events/EventsList/EventDetails.tsx
+++ b/graylog2-web-interface/src/views/components/widgets/events/EventsList/EventDetails.tsx
@@ -58,7 +58,6 @@ const EventDetailsWrapper = ({ eventId }: { eventId: string }) => {
const puggableEventDetails = usePluggableEventDetails(eventId);
if (puggableEventDetails?.length) {
- // eslint-disable-next-line react/jsx-no-useless-fragment
return <>{puggableEventDetails}>;
}
diff --git a/graylog2-web-interface/src/views/components/widgets/events/filters/EventDefinitionName.tsx b/graylog2-web-interface/src/views/components/widgets/events/filters/EventDefinitionName.tsx
index aabad253b513..1f1aa6f03075 100644
--- a/graylog2-web-interface/src/views/components/widgets/events/filters/EventDefinitionName.tsx
+++ b/graylog2-web-interface/src/views/components/widgets/events/filters/EventDefinitionName.tsx
@@ -39,7 +39,6 @@ const EventDefinitionName = ({ eventDefinitionId, displayAsLink }: Props) => {
}
if (!displayAsLink || !canViewDefinition) {
- // eslint-disable-next-line react/jsx-no-useless-fragment
return <>{title}>;
}