fix setTravelBoundaries() with no args

This commit is contained in:
Stewart Allen 2025-12-13 22:57:10 -05:00
commit 6d0faa29a4

View file

@ -553,7 +553,7 @@ export async function prepare_one(widget, settings, print, firstPoint, update) {
function setTravelBoundary(polys) {
lastTravelBounds = travelBounds;
travelBounds = POLY.flatten(polys);
travelBounds = polys ? POLY.flatten(polys) : undefined;
}
/**