diff --git a/server/src/main/ui2/src/app/components/designer/designer.component.ts b/server/src/main/ui2/src/app/components/designer/designer.component.ts index bdc2013..a576050 100644 --- a/server/src/main/ui2/src/app/components/designer/designer.component.ts +++ b/server/src/main/ui2/src/app/components/designer/designer.component.ts @@ -390,7 +390,9 @@ export class DesignerComponent implements OnInit, AfterViewInit { this.mapDesignService.saveMapDesign(this.mapDesign).subscribe(() => { this.territoryNumber.setValue(''); - this.loadMap(); + setTimeout(()=>{ // because sometimes this error occurs: com.fasterxml.jackson.databind.exc.MismatchedInputException: No content to map due to end-of-input + this.loadMap(); + },250) }) }