Skip to content

Commit eae78fc

Browse files
updated var name
1 parent 8d5cf28 commit eae78fc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Diff for: sources/packages/web/src/views/institution/OfferingsUpload.vue

+6-6
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
:clearable="true"
6262
:accept="ACCEPTED_FILE_TYPE"
6363
density="compact"
64-
v-model="offeringFiles"
64+
v-model="offeringFile"
6565
label="Offering CSV file"
6666
variant="outlined"
6767
data-cy="fileUpload"
@@ -225,8 +225,8 @@ export default defineComponent({
225225
const snackBar = useSnackBar();
226226
const validationProcessing = ref(false);
227227
const creationProcessing = ref(false);
228-
// If multiple prop is undefined or false the component returns now a File object.
229-
const offeringFiles = ref<File>();
228+
// If multiple prop is undefined or false for VFileInput the component returns now a File object.
229+
const offeringFile = ref<File>();
230230
// Possible errors and warnings received upon file upload.
231231
const validationResults = ref([] as OfferingsUploadBulkInsert[]);
232232
const uploadForm = ref({} as VForm);
@@ -254,7 +254,7 @@ export default defineComponent({
254254
}
255255
const uploadResults =
256256
await EducationProgramOfferingService.shared.offeringBulkInsert(
257-
offeringFiles.value as Blob,
257+
offeringFile.value as Blob,
258258
validationOnly,
259259
(progressEvent: AxiosProgressEvent) => {
260260
uploadProgress.value = progressEvent;
@@ -317,7 +317,7 @@ export default defineComponent({
317317
318318
const resetForm = () => {
319319
validationResults.value = [];
320-
offeringFiles.value = undefined;
320+
offeringFile.value = undefined;
321321
csvFileUploadKey.value++;
322322
};
323323
@@ -331,7 +331,7 @@ export default defineComponent({
331331
creationProcessing,
332332
DEFAULT_PAGE_LIMIT,
333333
PAGINATION_LIST,
334-
offeringFiles,
334+
offeringFile,
335335
uploadFile,
336336
validationResults,
337337
fileValidationRules,

0 commit comments

Comments
 (0)