diff --git a/src/Squidex/app/framework/utils/date-time.ts b/src/Squidex/app/framework/utils/date-time.ts index d34578c17..1cfd73eaf 100644 --- a/src/Squidex/app/framework/utils/date-time.ts +++ b/src/Squidex/app/framework/utils/date-time.ts @@ -110,7 +110,7 @@ export class DateTime { if (parsedMoment.isValid()) { return new DateTime(parsedMoment.toDate()); } else { - throw `${value} is not a valid date time string`; + throw Error(`DateTime: ${value} is not a valid date time string`); } } @@ -120,7 +120,7 @@ export class DateTime { if (parsedMoment.isValid()) { return new DateTime(parsedMoment.toDate()); } else { - throw `${value} is not a valid date time string`; + throw Error(`DateTime: ${value} is not a valid date time string`); } } diff --git a/src/Squidex/app/shared/services/rules.service.ts b/src/Squidex/app/shared/services/rules.service.ts index 798f73158..7f16d80cd 100644 --- a/src/Squidex/app/shared/services/rules.service.ts +++ b/src/Squidex/app/shared/services/rules.service.ts @@ -269,9 +269,6 @@ export class RulesService { const url = this.apiUrl.buildUrl(link.href); return HTTP.requestVersioned(this.http, link.method, url, version).pipe( - map(({ payload }) => { - return parseRule(payload.body); - }), tap(() => { this.analytics.trackEvent('Rule', 'Deleted', appName); }),