Skip to content

Commit ed5c741

Browse files
authored
fix(file-item): uploading from external url (typo) (#281)
1 parent fb6b24e commit ed5c741

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

blocks/FileItem/FileItem.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ export class FileItem extends UploaderBlock {
192192
let caption =
193193
this.l10n('validation-error') +
194194
': ' +
195-
(this._entry.getValue('file')?.name || this._entry.vetValue('externalUrl'));
195+
(this._entry.getValue('file')?.name || this._entry.getValue('externalUrl'));
196196
this._showMessage('error', caption, validationErrorMsg);
197197
});
198198

@@ -202,7 +202,7 @@ export class FileItem extends UploaderBlock {
202202
return;
203203
}
204204
let caption =
205-
this.l10n('upload-error') + ': ' + (this._entry.getValue('file')?.name || this._entry.vetValue('externalUrl'));
205+
this.l10n('upload-error') + ': ' + (this._entry.getValue('file')?.name || this._entry.getValue('externalUrl'));
206206
this._showMessage('error', caption, uploadError.message);
207207
});
208208

@@ -215,7 +215,7 @@ export class FileItem extends UploaderBlock {
215215
});
216216

217217
this._subEntry('fileName', (name) => {
218-
this.$.itemName = name || this._entry.vetValue('externalUrl') || this.l10n('file-no-name');
218+
this.$.itemName = name || this._entry.getValue('externalUrl') || this.l10n('file-no-name');
219219
});
220220

221221
this._subEntry('fileSize', (fileSize) => {

0 commit comments

Comments
 (0)