Fix 'undefined' labels on rageshakes (#7680)
This commit is contained in:
parent
8221faad6c
commit
655f473612
1 changed files with 2 additions and 2 deletions
|
@ -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({
|
||||
|
|
Loading…
Reference in a new issue