From 9111943ef049db0de556fa6ff90948ff3ff6aeac Mon Sep 17 00:00:00 2001 From: Ismail Sunni Date: Wed, 18 Dec 2024 11:12:26 +0700 Subject: [PATCH] PB-1278: Simplify code. --- src/api/print.api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/print.api.js b/src/api/print.api.js index 3905b687f..4b5718a9c 100644 --- a/src/api/print.api.js +++ b/src/api/print.api.js @@ -136,7 +136,7 @@ class GeoAdminCustomizer extends BaseCustomizer { // don't ask why it works, but that's the best I could do. // Note(IS): I'm not sure if this is the best way to handle the Y offset. Need to be tested of different case. // Per issue 1278, it's correct. But Martin did it differently, but all test is pass. - symbolizer.graphicYOffset = symbolizer.graphicYOffset ? symbolizer.graphicYOffset : 0 + symbolizer.graphicYOffset = symbolizer.graphicYOffset ?? 0 } if (size) { symbolizer.graphicWidth = adjustWidth(size[0] * scale, this.printResolution)