Skip to content

Commit

Permalink
fix(module:upload): fix invalid preview image in picture card (#5205)
Browse files Browse the repository at this point in the history
close #5201
  • Loading branch information
cipchk authored May 6, 2020
1 parent 5ffa45c commit cbe8225
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/upload/upload-list.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,11 +202,11 @@ export class NzUploadListComponent implements OnChanges {

private fixData(): void {
this.list.forEach(file => {
file.isUploading = file.status === 'uploading';
file.message = this.genErr(file);
file.linkProps = typeof file.linkProps === 'string' ? JSON.parse(file.linkProps) : file.linkProps;
file.isImageUrl = this.isImageUrl(file);
file.iconType = this.getIconType(file);
file.isUploading = file.status === 'uploading';
file.listItemNameCls = this.listItemNameCls(file);
file.showDownload = this.showDownload(file);
});
Expand Down

0 comments on commit cbe8225

Please sign in to comment.