Fix Error message when string empty in input
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
Siklos 2022-08-05 13:03:00 +02:00
parent 563840080c
commit 415318a81c

View file

@ -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