Skip to content
This repository has been archived by the owner on Jan 29, 2019. It is now read-only.

Commit

Permalink
fix(VTransmitFile): problem with thumbnail update (#51)
Browse files Browse the repository at this point in the history
Fixes #50
  • Loading branch information
johnkingsley authored and alexsasharegan committed May 9, 2018
1 parent 1e973aa commit 932afe1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/classes/VTransmitFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ export class VTransmitFile {
public width: number = 0;
public height: number = 0;
public errorMessage: string = "";
public thumbnailLoaded: boolean = false;

/**
* `adapterData` is data meant for use by an upload adapter only.
*/
Expand Down Expand Up @@ -104,7 +106,7 @@ export class VTransmitFile {
}

get dataUrl() {
return this._dataUrl || "";
return this.thumbnailLoaded ? this._dataUrl : "";
}

set dataUrl(value) {
Expand All @@ -115,6 +117,7 @@ export class VTransmitFile {
configurable: true,
writable: true,
});
this.thumbnailLoaded = true;
}

static idFactory() {
Expand Down

0 comments on commit 932afe1

Please sign in to comment.