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

Commit 655f473

Browse files
authored
Fix 'undefined' labels on rageshakes (#7680)
1 parent 8221faa commit 655f473

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/views/dialogs/BugReportDialog.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export default class BugReportDialog extends React.Component<IProps, IState> {
9696
userText,
9797
sendLogs: true,
9898
progressCallback: this.sendProgressCallback,
99-
labels: [this.props.label],
99+
labels: this.props.label ? [this.props.label] : [],
100100
}).then(() => {
101101
if (!this.unmounted) {
102102
this.props.onFinished(false);
@@ -128,7 +128,7 @@ export default class BugReportDialog extends React.Component<IProps, IState> {
128128
await downloadBugReport({
129129
sendLogs: true,
130130
progressCallback: this.downloadProgressCallback,
131-
labels: [this.props.label],
131+
labels: this.props.label ? [this.props.label] : [],
132132
});
133133

134134
this.setState({

0 commit comments

Comments
 (0)