mirror of
https://github.com/grafana/grafana.git
synced 2025-01-27 16:57:14 -06:00
Storybook: Explicitly set init on a registry to stop Storybook from being broken (#55909)
This commit is contained in:
parent
2472777ce2
commit
cf1862ecc4
@ -41,7 +41,9 @@ export class Registry<T extends RegistryItem> {
|
||||
private byId = new Map<string, T>();
|
||||
private initialized = false;
|
||||
|
||||
constructor(private init?: () => T[]) {}
|
||||
constructor(private init?: () => T[]) {
|
||||
this.init = init;
|
||||
}
|
||||
|
||||
setInit = (init: () => T[]) => {
|
||||
if (this.initialized) {
|
||||
|
Loading…
Reference in New Issue
Block a user