Skip to content

Commit 596a2eb

Browse files
committed
removing duplicated common code and update core blocks
1 parent c8759c4 commit 596a2eb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

wp-react-lib/src/embedded/EmbeddedGateway.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ class EmbeddedGateway extends React.Component {
4545
container = div
4646
}
4747

48-
49-
50-
if (component) {
48+
if (component != null && getComponent(component) === null) {
49+
element.innerHTML = "<h1>Data Viz Error </h1><h4>Component<i> " + component + "</i> not found</h4><br>"
50+
} else if (component && getComponent(component)) {
5151
const props = {...this.props}
5252
const attrs = element.attributes
5353
for (let i = attrs.length - 1; i >= 0; i--) {

0 commit comments

Comments
 (0)