Skip to content

Commit

Permalink
Fixes #1660 - Create POI failed
Browse files Browse the repository at this point in the history
  • Loading branch information
HarelM committed Dec 9, 2021
1 parent 028db2c commit d5cb3d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IsraelHiking.Web/src/application/services/poi.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ export class PoiService {
if (ex.name === "TimeoutError") {
this.loggingService.error(`[POIs] Failed to upload feature with id: ${firstItemId}, but will try later due to ` +
`client side timeout error: ${ex.message}`);
} else if ((ex as HttpErrorResponse).error instanceof ProgressEvent) {
} else if ((ex as HttpErrorResponse).error && (ex as HttpErrorResponse).error.constructor.name === "ProgressEvent") {
this.loggingService.error(`[POIs] Failed to upload feature with id: ${firstItemId}, but will try later due to ` +
`client side general error: ${ex.message}`);
} else {
Expand Down

0 comments on commit d5cb3d5

Please sign in to comment.