Ctrz - z & undo works only one time (swimlanes issue)

When I drop an object in a swimlane, undo button or ctrl+z works only one time. It does not work again

http://g.recordit.co/qAokHrEz2e.gif

When I remove _getPoolLayout work fine.

function _getPoolLayout(isVertical) {
var _verticalComparer = function (a, b) {
var ax = a.location.x;
var bx = b.location.x;
if (isNaN(ax) || isNaN(bx)) return 0;
if (ax < bx) return -1;
if (ax > bx) return 1;
return 0;
}
var _horizontalComparer = function (a, b) {
var ay = a.location.y;
var by = b.location.y;
if (isNaN(ay) || isNaN(by)) return 0;
if (ay < by) return -1;
if (ay > by) return 1;
return 0;
}

return GO(PoolLayout,
            {
                spacing: new go.Size(0, 0), // no space between lanes
                wrappingColumn: isVertical ? Infinity : 1,
                comparer: isVertical ? _verticalComparer : _horizontalComparer
            }
        );

}

function getPoolGroupTemplate(helper) {
return GO(go.Group, “Auto”, groupStyle(),
{
zOrder: 0,
computesBoundsIncludingLinks: false
},
new go.Binding(“layout”, “”, function (val) {
return _getPoolLayout(val.isVertical);
}),
{
selectionAdorned: true,
selectionAdornmentTemplate:
GO(go.Adornment, “Auto”,
GO(go.Shape, { stroke: “dodgerblue”, fill: null }),
GO(go.Placeholder, { margin: -1 }))
},
new go.Binding(“location”, “loc”, go.Point.parse).makeTwoWay(go.Point.stringify),
GO(go.Shape,
{ fill: “transparent”, stroke: “transparent”, strokeWidth: 1 },
new go.Binding(“fill”, “”, function (val) {
return helper._getBackgroundColor(val);
}),
new go.Binding(“stroke”, “”, function (val) {
return helper._getBorderColor(val);
})
),
GO(go.Panel, “Table”,
{
defaultColumnSeparatorStroke: “transparent”,
defaultRowSeparatorStroke: “transparent”
},
new go.Binding(“defaultColumnSeparatorStroke”, “”, function (val) {
return helper._getBorderColor(val);
}),
new go.Binding(“defaultRowSeparatorStroke”, “”, function (val) {
return helper._getBorderColor(val);
}),
GO(go.Panel, “Horizontal”,
{ column: 0, row: 0, angle: 270 },
new go.Binding(“angle”, “”, function (node) {
return node.data && node.data.isVertical ? 0 : 270;
}).ofObject(),
GO(go.TextBlock,
{ editable: true, margin: new go.Margin(5, 0, 5, 0) },
helper._getTextBlockFontOptions(),
new go.Binding(“text”).makeTwoWay()
)
),
GO(go.Placeholder,
{ background: “transparent”, column: 1, padding: 0 },
new go.Binding(“column”, “”, function (node) {
return node.data && node.data.isVertical ? 0 : 1;
}).ofObject(),
new go.Binding(“row”, “”, function (node) {
return node.data && node.data.isVertical ? 1 : 0;
}).ofObject()
)
)
);
}

Are you using go-debug.js and checking the console window for warning or errors?

When import prmr file console error

https://ufile.io/9oxdw

Well, “null” is certainly not a valid CSS color string. So you should fix that and see if the original error continues.