File tree Expand file tree Collapse file tree 4 files changed +4
-9
lines changed
components/externalIssues Expand file tree Collapse file tree 4 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -157,7 +157,6 @@ export default function ExternalIssueForm({
157
157
setIsDynamicallyRefetching ( false ) ;
158
158
} ,
159
159
error : ( err : any ) => {
160
- // This behavior comes from the DeprecatedAsyncComponent
161
160
if ( err ?. responseText ) {
162
161
Sentry . addBreadcrumb ( {
163
162
message : err . responseText ,
Original file line number Diff line number Diff line change @@ -183,12 +183,12 @@ export default function TicketRuleModal({
183
183
integrationId : instance . integration ,
184
184
query : initialConfigQuery ,
185
185
} ) ,
186
- existingData => ( data ? data : existingData )
186
+ ( existingData : IntegrationIssueConfig | undefined ) =>
187
+ data ? data : existingData
187
188
) ;
188
189
setIsDynamicallyRefetching ( false ) ;
189
190
} ,
190
191
error : ( err : any ) => {
191
- // This behavior comes from the DeprecatedAsyncComponent
192
192
if ( err ?. responseText ) {
193
193
Sentry . addBreadcrumb ( {
194
194
message : err . responseText ,
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import {useApiQuery} from 'sentry/utils/queryClient';
14
14
import type { Field } from 'sentry/views/admin/options' ;
15
15
import { getForm , getOptionDefault , getOptionField } from 'sentry/views/admin/options' ;
16
16
17
- export type InstallWizardProps = {
17
+ type InstallWizardProps = {
18
18
onConfigured : ( ) => void ;
19
19
} ;
20
20
Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ import {GlobalFeedbackForm} from 'sentry/utils/useFeedbackForm';
34
34
import { useHotkeys } from 'sentry/utils/useHotkeys' ;
35
35
import { useLocation } from 'sentry/utils/useLocation' ;
36
36
import { useUser } from 'sentry/utils/useUser' ;
37
- import type { InstallWizardProps } from 'sentry/views/admin/installWizard' ;
38
37
import { AsyncSDKIntegrationContextProvider } from 'sentry/views/app/asyncSDKIntegrationProvider' ;
39
38
import LastKnownRouteContextProvider from 'sentry/views/lastKnownRouteContextProvider' ;
40
39
import { OrganizationContextProvider } from 'sentry/views/organizationContext' ;
@@ -44,10 +43,7 @@ type Props = {
44
43
children : React . ReactNode ;
45
44
} & RouteComponentProps < { orgId ?: string } > ;
46
45
47
- const InstallWizard = lazy (
48
- ( ) => import ( 'sentry/views/admin/installWizard' )
49
- // TODO(TS): DeprecatedAsyncComponent prop types are doing something weird
50
- ) as unknown as React . ComponentType < InstallWizardProps > ;
46
+ const InstallWizard = lazy ( ( ) => import ( 'sentry/views/admin/installWizard' ) ) ;
51
47
const NewsletterConsent = lazy ( ( ) => import ( 'sentry/views/newsletterConsent' ) ) ;
52
48
const BeaconConsent = lazy ( ( ) => import ( 'sentry/views/beaconConsent' ) ) ;
53
49
You can’t perform that action at this time.
0 commit comments