We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8759c4 commit 596a2ebCopy full SHA for 596a2eb
1 file changed
wp-react-lib/src/embedded/EmbeddedGateway.jsx
@@ -45,9 +45,9 @@ class EmbeddedGateway extends React.Component {
45
container = div
46
}
47
48
-
49
50
- if (component) {
+ if (component != null && getComponent(component) === null) {
+ element.innerHTML = "<h1>Data Viz Error </h1><h4>Component<i> " + component + "</i> not found</h4><br>"
+ } else if (component && getComponent(component)) {
51
const props = {...this.props}
52
const attrs = element.attributes
53
for (let i = attrs.length - 1; i >= 0; i--) {
0 commit comments