From 3b52df1d5dd424fa4d5cb397b78fa11e607f28da Mon Sep 17 00:00:00 2001 From: SychO9 Date: Mon, 17 May 2021 00:02:21 +0100 Subject: [PATCH] Remove Beta leftover warning code --- framework/core/js/src/common/states/AlertManagerState.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/framework/core/js/src/common/states/AlertManagerState.ts b/framework/core/js/src/common/states/AlertManagerState.ts index a7a8c2278..408e84f9a 100644 --- a/framework/core/js/src/common/states/AlertManagerState.ts +++ b/framework/core/js/src/common/states/AlertManagerState.ts @@ -46,14 +46,6 @@ export default class AlertManagerState { children = arg3; } - // Breaking Change Compliance Warning, Remove in Beta 15. - // This is applied to the first argument (attrs) because previously, the alert was passed as the first argument. - if (attrs === Alert || attrs instanceof Alert) { - // This is duplicated so that if the error is caught, an error message still shows up in the debug console. - console.error('The AlertManager can only show Alerts. Whichever extension triggered this alert should be updated to comply with beta 14.'); - throw new Error('The AlertManager can only show Alerts. Whichever extension triggered this alert should be updated to comply with beta 14.'); - } - // End Change Compliance Warning, Remove in Beta 15 this.activeAlerts[++this.alertId] = { children, attrs, componentClass }; m.redraw();