|
@@ -945,16 +945,6 @@ function WidgetBuilder({
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
- if (isEditing && !isValidWidgetIndex) {
|
|
|
- return (
|
|
|
- <SentryDocumentTitle title={dashboard.title} orgSlug={orgSlug}>
|
|
|
- <PageContent>
|
|
|
- <LoadingError message={t('The widget you want to edit was not found.')} />
|
|
|
- </PageContent>
|
|
|
- </SentryDocumentTitle>
|
|
|
- );
|
|
|
- }
|
|
|
-
|
|
|
const canAddSearchConditions =
|
|
|
[DisplayType.LINE, DisplayType.AREA, DisplayType.BAR].includes(state.displayType) &&
|
|
|
state.queries.length < 3;
|
|
@@ -996,6 +986,16 @@ function WidgetBuilder({
|
|
|
(widgetBuilderNewDesign && isTimeseriesChart && groupByValueSelected) ||
|
|
|
isTabularChart;
|
|
|
|
|
|
+ if (isEditing && !isValidWidgetIndex) {
|
|
|
+ return (
|
|
|
+ <SentryDocumentTitle title={dashboard.title} orgSlug={orgSlug}>
|
|
|
+ <PageContent>
|
|
|
+ <LoadingError message={t('The widget you want to edit was not found.')} />
|
|
|
+ </PageContent>
|
|
|
+ </SentryDocumentTitle>
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
return (
|
|
|
<SentryDocumentTitle title={dashboard.title} orgSlug={orgSlug}>
|
|
|
<PageFiltersContainer
|