mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Plugin extensions: Temp remove isReactComponent check (#95343)
* temp remove is react component check * remove unused import
This commit is contained in:
parent
9ec48075ee
commit
ef253c99d8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user