Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Fix 'undefined' labels on rageshakes (#7680)
Browse files Browse the repository at this point in the history
  • Loading branch information
duxovni authored Jan 31, 2022
1 parent 8221faa commit 655f473
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/views/dialogs/BugReportDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export default class BugReportDialog extends React.Component<IProps, IState> {
userText,
sendLogs: true,
progressCallback: this.sendProgressCallback,
labels: [this.props.label],
labels: this.props.label ? [this.props.label] : [],
}).then(() => {
if (!this.unmounted) {
this.props.onFinished(false);
Expand Down Expand Up @@ -128,7 +128,7 @@ export default class BugReportDialog extends React.Component<IProps, IState> {
await downloadBugReport({
sendLogs: true,
progressCallback: this.downloadProgressCallback,
labels: [this.props.label],
labels: this.props.label ? [this.props.label] : [],
});

this.setState({
Expand Down

0 comments on commit 655f473

Please sign in to comment.