Do not add when cancelled
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good

This commit is contained in:
Willem Dantuma 2020-07-20 14:59:27 +02:00
parent dc329a0e29
commit 5f5d8a9712

View File

@ -53,7 +53,7 @@ export class ResumableFileUploadService implements OnDestroy{
handleState(state:UploadState) {
var file =this.files.find((f) => f.identifier == state.uploadId )
if(!file) {
if(state.status != "cancelled" && !file) {
this.files.push(new File(state));
this.isClosed=false;
}