Skip to content

Commit ef522f1

Browse files
authored
fix(ui): Fix <ProjectDebugFiles> on delete (#18450)
`this` was not bound. Fixes JAVASCRIPT-223M
1 parent 6de423d commit ef522f1

File tree

1 file changed

+3
-3
lines changed
  • src/sentry/static/sentry/app/views/settings/projectDebugFiles

1 file changed

+3
-3
lines changed

src/sentry/static/sentry/app/views/settings/projectDebugFiles/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class ProjectDebugSymbols extends AsyncView<Props, State> {
5555
return endpoints;
5656
}
5757

58-
onDelete(id: string) {
58+
handleDelete = (id: string) => {
5959
const {orgId, projectId} = this.props.params;
6060

6161
this.setState({
@@ -66,7 +66,7 @@ class ProjectDebugSymbols extends AsyncView<Props, State> {
6666
method: 'DELETE',
6767
complete: () => this.fetchData(),
6868
});
69-
}
69+
};
7070

7171
renderDebugFiles() {
7272
const {debugFiles} = this.state;
@@ -79,7 +79,7 @@ class ProjectDebugSymbols extends AsyncView<Props, State> {
7979
<DebugFileRow
8080
debugFile={debugFile}
8181
downloadUrl={downloadUrl}
82-
onDelete={this.onDelete}
82+
onDelete={this.handleDelete}
8383
key={debugFile.id}
8484
/>
8585
);

0 commit comments

Comments
 (0)