From 94360e24fa59554c0d709a0783d5df3232bd32bb Mon Sep 17 00:00:00 2001
From: Michael Foiani <sotech117@Michaels-MacBook-Pro-5.local>
Date: Thu, 18 Aug 2022 18:28:49 +0200
Subject: small format fix

---
 src/client/util/ReportManager.tsx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'src/client/util/ReportManager.tsx')

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));
             })
         }
         
-- 
cgit v1.2.3-70-g09d2

