Do not fetch image if file.id is not present (#2165)
This commit is contained in:
parent
4f120fed5d
commit
e6c37e5e69
1 changed files with 1 additions and 1 deletions
|
|
@ -115,7 +115,7 @@ export default class FileAttachmentImage extends PureComponent {
|
|||
const imageProps = {};
|
||||
if (file.localPath) {
|
||||
imageProps.defaultSource = {uri: file.localPath};
|
||||
} else {
|
||||
} else if (file.id) {
|
||||
imageProps.thumbnailUri = Client4.getFileThumbnailUrl(file.id);
|
||||
imageProps.imageUri = Client4.getFilePreviewUrl(file.id);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue