Fix 'undefined' labels on rageshakes (#7680)

pull/21833/head
Faye Duxovni 2022-01-31 10:15:46 -05:00 committed by GitHub
parent 8221faad6c
commit 655f473612
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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);
@ -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({