Skip to content

Commit

Permalink
Fix property wipe bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Aug 30, 2024
1 parent c8c36b4 commit 41a01df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/routes/connection-layer-cot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default async function router(schema: Schema, config: Config) {
const style = new Style(layer);

for (let i = 0; i < req.body.features.length; i++) {
if (req.body.features[i].properties) req.body.features[i].properties = {};
if (!req.body.features[i].properties) req.body.features[i].properties = {};

req.body.features[i] = await style.feat(req.body.features[i])

Expand Down

0 comments on commit 41a01df

Please sign in to comment.