From 655f473612841bdadb324e0bff70611ca43713f6 Mon Sep 17 00:00:00 2001 From: Faye Duxovni Date: Mon, 31 Jan 2022 10:15:46 -0500 Subject: [PATCH] Fix 'undefined' labels on rageshakes (#7680) --- src/components/views/dialogs/BugReportDialog.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/views/dialogs/BugReportDialog.tsx b/src/components/views/dialogs/BugReportDialog.tsx index 1125a7d33c..8324a15214 100644 --- a/src/components/views/dialogs/BugReportDialog.tsx +++ b/src/components/views/dialogs/BugReportDialog.tsx @@ -96,7 +96,7 @@ export default class BugReportDialog extends React.Component { 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 { await downloadBugReport({ sendLogs: true, progressCallback: this.downloadProgressCallback, - labels: [this.props.label], + labels: this.props.label ? [this.props.label] : [], }); this.setState({