diff --git a/package.json b/package.json index 40178e87..0e2beaba 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@formio/angular", - "version": "8.0.0-rc.2", + "version": "8.0.0-rc.3", "scripts": { "ng": "ng", "build": "ng build angular-formio", diff --git a/projects/angular-formio/package.json b/projects/angular-formio/package.json index 79efefff..1eb553ef 100644 --- a/projects/angular-formio/package.json +++ b/projects/angular-formio/package.json @@ -1,6 +1,6 @@ { "name": "@formio/angular", - "version": "8.0.0-rc.2", + "version": "8.0.0-rc.3", "repository": { "type": "git", "url": "https://github.com/formio/angular-formio" diff --git a/projects/angular-formio/resource/src/resource.service.ts b/projects/angular-formio/resource/src/resource.service.ts index 98e70101..518cd1ad 100644 --- a/projects/angular-formio/resource/src/resource.service.ts +++ b/projects/angular-formio/resource/src/resource.service.ts @@ -85,8 +85,9 @@ export class FormioResourceService { } init(route: ActivatedRoute) { - const reset = route.snapshot.queryParams.hasOwnProperty('reset') ? route.snapshot.queryParams.reset : false; - const resourceId = route.snapshot.params['id']; + const snapshot = route.snapshot; + const reset = snapshot.queryParams?.hasOwnProperty('reset') ? snapshot.queryParams.reset : false; + const resourceId = snapshot.params['id']; if (resourceId && (resourceId === this.resourceId) && !reset) { return this.ready; }