From 0ee0c4bf0197f160611f97a290cf2d79d167a92a Mon Sep 17 00:00:00 2001 From: hydrogen2oxygen Date: Tue, 31 Oct 2023 17:37:53 +0100 Subject: [PATCH] Probably a bug fix for "com.fasterxml.jackson.databind.exc.MismatchedInputException: No content to map due to end-of-input" --- .../ui2/src/app/components/designer/designer.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) }) }