Skip to content

Commit fa48e9c

Browse files
committed
Merge branch 'beta'
2 parents fb95367 + a0fd9fb commit fa48e9c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/botPage/view/components.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ const doNotHide = ['center', 'flyout', 'workspace_inside'];
2525

2626
export const getUiComponent = (component) => {
2727
if (isMainBlock(component)) {
28-
return $(getBlockByType(component).getSvgRoot());
28+
const mainBlock = getBlockByType(component);
29+
if (mainBlock) {
30+
return $(getBlockByType(component).getSvgRoot());
31+
}
32+
return $(uiComponents.center);
2933
}
3034
return $(uiComponents[component]);
3135
};

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy