From ef253c99d88fb3e1448dffb7fdb7e9748a676921 Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Thu, 24 Oct 2024 15:21:00 +0200 Subject: [PATCH] Plugin extensions: Temp remove isReactComponent check (#95343) * temp remove is react component check * remove unused import --- .../extensions/registry/AddedComponentsRegistry.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/public/app/features/plugins/extensions/registry/AddedComponentsRegistry.ts b/public/app/features/plugins/extensions/registry/AddedComponentsRegistry.ts index a57f56c6008..7cedc79d4bf 100644 --- a/public/app/features/plugins/extensions/registry/AddedComponentsRegistry.ts +++ b/public/app/features/plugins/extensions/registry/AddedComponentsRegistry.ts @@ -3,7 +3,7 @@ import { ReplaySubject } from 'rxjs'; import { PluginExtensionAddedComponentConfig } from '@grafana/data'; import { isAddedComponentMetaInfoMissing, isGrafanaDevMode, wrapWithPluginContext } from '../utils'; -import { extensionPointEndsWithVersion, isGrafanaCoreExtensionPoint, isReactComponent } from '../validators'; +import { extensionPointEndsWithVersion, isGrafanaCoreExtensionPoint } from '../validators'; import { PluginExtensionConfigs, Registry, RegistryType } from './Registry'; @@ -40,13 +40,6 @@ export class AddedComponentsRegistry extends Registry< pluginId, }); - if (!isReactComponent(config.component)) { - configLog.error( - `Could not register added component. Reason: The provided component is not a valid React component.` - ); - continue; - } - if (!config.title) { configLog.error(`Could not register added component. Reason: Title is missing.`); continue;