Skip to content

Commit

Permalink
Update batch upload to fix issue related to batch uploading (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
BryonLewis authored Apr 8, 2024
1 parent bc2f2d0 commit 7a16610
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion client/src/components/BatchUploadRecording.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import useRequest from '../use/useRequest';
import { UploadLocation, uploadRecordingFile, getCellLocation, RecordingFileParameters, getGuanoMetadata } from '../api/api';
import BatchRecordingElement, { BatchRecording } from './BatchRecordingElement.vue';
import { cloneDeep } from 'lodash';
import { extractDateTimeComponents } from '../use/useUtils';
import { extractDateTimeComponents, getCurrentTime } from '../use/useUtils';
interface AutoFillResult {
Expand Down Expand Up @@ -108,6 +108,17 @@ export default defineComponent({
};
recordings.value.push(newRecording);
} else {
recordings.value.push({
file,
name: file.name,
date: new Date().toISOString().split('T')[0],
time: getCurrentTime(),
equipment: '',
comments: '',
public: false,
});
}
}
}
Expand Down

0 comments on commit 7a16610

Please sign in to comment.