Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/components/renderer/file-upload.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,15 @@ import _ from 'lodash';
// Create the mixin
const uniqIdsMixin = createUniqIdsMixin();

// vue-simple-uploader tries to call these after the component has
// been destroyed since it does it in nextTick(). It has no effect
// on functionality because a new copy is created. TODO: Why is this
// component being recreated when used in a loop?
const ignoreErrors = [
'Cannot read property \'assignBrowse\' of null',
'Cannot read property \'assignDrop\' of null',
];

export default {
components: uploader,
mixins: [uniqIdsMixin],
Expand Down Expand Up @@ -84,6 +93,11 @@ export default {
this.$refs['uploader'].$forceUpdate();
}
},
errorCaptured(err) {
if (ignoreErrors.includes(err.message)) {
return false;
}
},
computed: {
required() {
if (this.config && this.config.validation) {
Expand Down