Do not add when cancelled
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
This commit is contained in:
@@ -53,7 +53,7 @@ export class ResumableFileUploadService implements OnDestroy{
|
|||||||
|
|
||||||
handleState(state:UploadState) {
|
handleState(state:UploadState) {
|
||||||
var file =this.files.find((f) => f.identifier == state.uploadId )
|
var file =this.files.find((f) => f.identifier == state.uploadId )
|
||||||
if(!file) {
|
if(state.status != "cancelled" && !file) {
|
||||||
this.files.push(new File(state));
|
this.files.push(new File(state));
|
||||||
this.isClosed=false;
|
this.isClosed=false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user