diff --git a/packages/@uppy/core/src/Uppy.js b/packages/@uppy/core/src/Uppy.js index 133565045a..7f624cc4fb 100644 --- a/packages/@uppy/core/src/Uppy.js +++ b/packages/@uppy/core/src/Uppy.js @@ -852,7 +852,7 @@ class Uppy { calculateProgress (file, data) { if (file == null || !this.getFile(file.id)) { - this.log(`Not setting progress for a file that has been removed: ${file.id}`) + this.log(`Not setting progress for a file that has been removed: ${file?.id}`) return } @@ -980,7 +980,7 @@ class Uppy { this.on('upload-started', (file) => { if (file == null || !this.getFile(file.id)) { - this.log(`Not setting progress for a file that has been removed: ${file.id}`) + this.log(`Not setting progress for a file that has been removed: ${file?.id}`) return } this.setFileState(file.id, { @@ -998,7 +998,7 @@ class Uppy { this.on('upload-success', (file, uploadResp) => { if (file == null || !this.getFile(file.id)) { - this.log(`Not setting progress for a file that has been removed: ${file.id}`) + this.log(`Not setting progress for a file that has been removed: ${file?.id}`) return } @@ -1031,7 +1031,7 @@ class Uppy { this.on('preprocess-progress', (file, progress) => { if (file == null || !this.getFile(file.id)) { - this.log(`Not setting progress for a file that has been removed: ${file.id}`) + this.log(`Not setting progress for a file that has been removed: ${file?.id}`) return } this.setFileState(file.id, { @@ -1041,7 +1041,7 @@ class Uppy { this.on('preprocess-complete', (file) => { if (file == null || !this.getFile(file.id)) { - this.log(`Not setting progress for a file that has been removed: ${file.id}`) + this.log(`Not setting progress for a file that has been removed: ${file?.id}`) return } const files = { ...this.getState().files } @@ -1053,7 +1053,7 @@ class Uppy { this.on('postprocess-progress', (file, progress) => { if (file == null || !this.getFile(file.id)) { - this.log(`Not setting progress for a file that has been removed: ${file.id}`) + this.log(`Not setting progress for a file that has been removed: ${file?.id}`) return } this.setFileState(file.id, { @@ -1063,7 +1063,7 @@ class Uppy { this.on('postprocess-complete', (file) => { if (file == null || !this.getFile(file.id)) { - this.log(`Not setting progress for a file that has been removed: ${file.id}`) + this.log(`Not setting progress for a file that has been removed: ${file?.id}`) return } const files = {