Chore: fix tests, remove obsolete imports

This commit is contained in:
Pieter Vander Vennet 2025-04-22 01:45:34 +02:00
parent 3f577e7978
commit 2ea9236d37
6 changed files with 13 additions and 14 deletions

View file

@ -868,7 +868,9 @@ class LayerOverviewUtils extends Script {
id +
"(feat: Feature, helperFunctions: Record<ExtraFuncType, (feature: Feature) => Function>) {"
)
allCode.push(" const {" + ExtraFunctions.types.join(", ") + "} = helperFunctions")
if (code?.length > 0) {
allCode.push(" const {" + ExtraFunctions.types.join(", ") + "} = helperFunctions")
}
for (const line of code) {
const firstEq = line.indexOf("=")
let attributeName = line.substring(0, firstEq).trim()