aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client/util/ReportManager.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/util/ReportManager.tsx b/src/client/util/ReportManager.tsx
index ed9a4fc89..55c5ca87f 100644
--- a/src/client/util/ReportManager.tsx
+++ b/src/client/util/ReportManager.tsx
@@ -118,7 +118,7 @@ export class ReportManager extends React.Component<{}> {
owner: 'brown-dash',
repo: 'Dash-Web',
title: this.formatTitle(this.bugTitle, Doc.CurrentUserEmail),
- body: `${this.bugDescription} \n\nfileLinks:\n${(this.fileLinks ?? []).join('\n')}`,
+ body: `${this.bugDescription} \n\nfiles:\n${(this.fileLinks ?? []).join('\n')}`,
labels: [
'from-dash-app',
this.bugType,
@@ -158,9 +158,9 @@ export class ReportManager extends React.Component<{}> {
// upload the files to the server
if (input.files && input.files.length !== 0) {
const fileArray: File[] = Array.from(input.files);
- Networking.UploadFilesToServer(fileArray).then(links => {
+ (Networking.UploadFilesToServer(fileArray)).then(links => {
console.log('finshed uploading', links.map(this.getServerPath));
- this.setFileLinks(links.map(this.getServerPath));
+ this.setFileLinks((links ?? []).map(this.getServerPath));
})
}