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,
|
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({
|
||||||
|
|
Loading…
Reference in a new issue