|
@@ -14,7 +14,6 @@ import {IconAdd, IconDelete} from 'sentry/icons';
|
|
|
import {t, tct} from 'sentry/locale';
|
|
|
import {space} from 'sentry/styles/space';
|
|
|
import type {PageFilters} from 'sentry/types/core';
|
|
|
-import type {Organization} from 'sentry/types/organization';
|
|
|
import {
|
|
|
createOnDemandFilterWarning,
|
|
|
isOnDemandQueryString,
|
|
@@ -48,7 +47,6 @@ interface Props {
|
|
|
onQueryChange: (queryIndex: number, newQuery: WidgetQuery) => void;
|
|
|
onQueryConditionChange: (isQueryConditionValid: boolean) => void;
|
|
|
onQueryRemove: (queryIndex: number) => void;
|
|
|
- organization: Organization;
|
|
|
queries: WidgetQuery[];
|
|
|
selection: PageFilters;
|
|
|
validatedWidgetResponse: UseApiQueryResult<ValidateWidgetResponse, RequestError>;
|
|
@@ -66,7 +64,6 @@ export function FilterResultsStep({
|
|
|
onQueryRemove,
|
|
|
onAddSearchConditions,
|
|
|
onQueryChange,
|
|
|
- organization,
|
|
|
hideLegendAlias,
|
|
|
queryErrors,
|
|
|
widgetType,
|
|
@@ -74,6 +71,7 @@ export function FilterResultsStep({
|
|
|
onQueryConditionChange,
|
|
|
validatedWidgetResponse,
|
|
|
}: Props) {
|
|
|
+ const organization = useOrganization();
|
|
|
const [queryConditionValidity, setQueryConditionValidity] = useState<boolean[]>([]);
|
|
|
|
|
|
const handleSearch = useCallback(
|
|
@@ -174,7 +172,6 @@ export function FilterResultsStep({
|
|
|
? getOnDemandFilterWarning
|
|
|
: undefined
|
|
|
}
|
|
|
- organization={organization}
|
|
|
pageFilters={selection}
|
|
|
onClose={handleClose(queryIndex)}
|
|
|
onSearch={handleSearch(queryIndex)}
|