Fix 'undefined' labels on rageshakes (#7680)

This commit is contained in:
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

View file

@ -96,7 +96,7 @@ export default class BugReportDialog extends React.Component<IProps, IState> {
userText, userText,
sendLogs: true, sendLogs: true,
progressCallback: this.sendProgressCallback, progressCallback: this.sendProgressCallback,
labels: [this.props.label], labels: this.props.label ? [this.props.label] : [],
}).then(() => { }).then(() => {
if (!this.unmounted) { if (!this.unmounted) {
this.props.onFinished(false); this.props.onFinished(false);
@ -128,7 +128,7 @@ export default class BugReportDialog extends React.Component<IProps, IState> {
await downloadBugReport({ await downloadBugReport({
sendLogs: true, sendLogs: true,
progressCallback: this.downloadProgressCallback, progressCallback: this.downloadProgressCallback,
labels: [this.props.label], labels: this.props.label ? [this.props.label] : [],
}); });
this.setState({ this.setState({