Skip to content

Commit

Permalink
Merge pull request #216 from bcgov/ofmcc-4154-unable-upload-documents
Browse files Browse the repository at this point in the history
ofmcc-4154 - fix upload document bug after vuetify upgrade
  • Loading branch information
vietle-cgi authored May 28, 2024
2 parents bd99380 + 4036195 commit 12f9d7c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions frontend/src/services/documentService.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ function mapDocumentFileObjectForBack(documents) {
let formData = new FormData()
let fileMapping = []
documents?.forEach((document, index) => {
if (isEmpty(document.file)) return
const file = document.file[0]
if (!document.file) return
const file = document.file
let fileName = file?.name
fileName = isHeicFile(fileName) ? updateHeicFileNameToJpg(fileName) : fileName
fileMapping.push({
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/views/applications/OperatingCostsView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
</v-row>
<v-card class="mt-2 pa-4" variant="outlined">
<h5>Financial Documents</h5>
<div class="greyCards py-2 px-4">
<div class="greyCards py-2 px-4 mt-2">
<v-card class="mt-2 mb-4 pa-4">
<AppDocumentUpload
id="financial-document-upload"
Expand All @@ -67,7 +67,7 @@
@deleteUploadedDocument="deleteUploadedDocument"></AppDocumentUpload>
</v-card>
</div>
<div class="greyCards py-2 px-4 mt-14">
<div class="greyCards py-2 px-4 mt-8">
<v-card class="mt-2 pt-4 mb-4 pa-4">
<AppDocumentUpload
id="supporting-document-upload"
Expand All @@ -79,7 +79,7 @@
:uploadedDocuments="supporting.uploadedDocuments"
@deleteUploadedDocument="deleteUploadedDocument"></AppDocumentUpload>

<ul class="ml-7">
<ul class="ml-7 mt-4">
<li>Your yearly operating cost Rent/Lease payment schedule</li>
</ul>
</v-card>
Expand Down

0 comments on commit 12f9d7c

Please sign in to comment.