Fix Error message when string empty in input
This commit is contained in:
parent
563840080c
commit
415318a81c
1 changed files with 2 additions and 1 deletions
|
@ -17,6 +17,7 @@ export class Container extends React.Component<IContainerProps> {
|
|||
const containersElements = this.props.model.children.map(child => new Container({ model: child } as IContainerProps).render());
|
||||
const xText = Number(this.props.model.properties.width) / 2;
|
||||
const yText = Number(this.props.model.properties.height) / 2;
|
||||
const transform = `translate(${Number(this.props.model.properties.x)}, ${Number(this.props.model.properties.y)})`;
|
||||
|
||||
// g style
|
||||
const defaultStyle = {
|
||||
|
@ -46,7 +47,7 @@ export class Container extends React.Component<IContainerProps> {
|
|||
return (
|
||||
<g
|
||||
style={defaultStyle}
|
||||
transform={`translate(${this.props.model.properties.x}, ${this.props.model.properties.y})`}
|
||||
transform={transform}
|
||||
key={`container-${this.props.model.properties.id}`}
|
||||
>
|
||||
<Dimension
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue