diff options
Diffstat (limited to 'server/sonar-web/src/main/js/components/lazyLoad.tsx')
-rw-r--r-- | server/sonar-web/src/main/js/components/lazyLoad.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/components/lazyLoad.tsx b/server/sonar-web/src/main/js/components/lazyLoad.tsx index 7043b40f440..2b4268bf08a 100644 --- a/server/sonar-web/src/main/js/components/lazyLoad.tsx +++ b/server/sonar-web/src/main/js/components/lazyLoad.tsx @@ -29,7 +29,7 @@ interface Loader<P> { export const LAST_FAILED_CHUNK_STORAGE_KEY = 'sonarqube.last_failed_chunk'; -export function lazyLoad<P>(loader: Loader<P>) { +export function lazyLoad<P>(loader: Loader<P>, displayName?: string) { interface ImportError { request?: string; } @@ -43,6 +43,7 @@ export function lazyLoad<P>(loader: Loader<P>) { // and let the child component decide if it needs to change return class LazyLoader extends React.Component<any, State> { mounted = false; + static displayName = displayName; state: State = {}; componentDidMount() { |