Commit 01911292 authored by Patrik Meijer's avatar Patrik Meijer
Browse files

FIX broken Canvas item due to svg refactor

parent bcd5d87e
Loading
Loading
Loading
Loading
+5 −14
Original line number Diff line number Diff line
@@ -224,14 +224,7 @@ class SVGRegistryBasedCanvasItem extends Component {
            this.setState({
                position: null,
                showActions: false,
                svg: {
                    base: defaultSVG,
                    bbox: {
                        x: 0, y: 0, height: 100, width: 100,
                    },
                    ports: {},
                    attributes: {},
                },
                svg: defaultSVG,
                childrenName2Id: {},
                childInfo: {},
                isConnection: null,
@@ -311,12 +304,10 @@ class SVGRegistryBasedCanvasItem extends Component {
        }

        const newSvg = {
            base: nodeObj.getRegistry('SVGIcon') || defaultSVG,
            bbox: nodeObj.getRegistry('SVGBbox') || {
                x: 0, y: 0, height: 100, width: 100,
            },
            ports: nodeObj.getRegistry('SVGPorts') || {},
            attributes: nodeObj.getRegistry('SVGAttributes') || {},
            base: nodeObj.getRegistry('SVGIcon') || defaultSVG.base,
            bbox: nodeObj.getRegistry('SVGBbox') || defaultSVG.bbox,
            ports: nodeObj.getRegistry('SVGPorts') || defaultSVG.ports,
            attributes: nodeObj.getRegistry('SVGAttributes') || defaultSVG.attributes,
            // TODO probably would be better to move towards ejs
        };