diff --git a/scripts/generateLayouts.ts b/scripts/generateLayouts.ts
index c3fafbc96..d1056c485 100644
--- a/scripts/generateLayouts.ts
+++ b/scripts/generateLayouts.ts
@@ -517,7 +517,7 @@ class GenerateLayouts extends Script {
)
.replace(
/.*/s,
- ""
+ ""
)
.replace(
/.*\/src\/index\.ts.*/,
diff --git a/scripts/prepare-build.sh b/scripts/prepare-build.sh
index 2f2543ed5..0e387bb62 100755
--- a/scripts/prepare-build.sh
+++ b/scripts/prepare-build.sh
@@ -18,7 +18,7 @@ npm run prep:layeroverview &&
npm run generate && # includes a single "refresh:layeroverview". Resetting the files is unnecessary as they are not in there in the first place
npm run generate:mapcomplete-changes-theme &&
npm run refresh:layeroverview && # run refresh:layeroverview a second time to propagate all calls
-npm run generate:layeroverview && npm run generate:layeroverview && # run refresh:layeroverview a third and fourth time to fix some issues with the favourite layer all calls
+npm run generate:layeroverview && # run refresh:layeroverview a third time to fix some issues with the favourite layer all calls
npm run generate:layouts