aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Foiani <sotech117@Michaels-MacBook-Pro-5.local>2022-08-18 18:28:49 +0200
committerMichael Foiani <sotech117@Michaels-MacBook-Pro-5.local>2022-08-18 18:28:49 +0200
commit94360e24fa59554c0d709a0783d5df3232bd32bb (patch)
tree27baf40b9841a49dc5264ea36f9cd8823bb7baff /src
parent4683ee7d40ab28d75002b674f52faf4e6c3cd965 (diff)
small format fix
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));
})
}