Skip to content

Commit

Permalink
Ensure ID is maintained over deconstructing object (#1023)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-shaw authored Oct 18, 2023
1 parent 2a441a0 commit c161667
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -546,11 +546,11 @@ function start(opts) {
}

return {
...style,
id,
name: (serving.styles[id] || serving.rendered[id]).name,
serving_data: serving.styles[id],
serving_rendered: serving.rendered[id],
...style,
};
});

Expand Down Expand Up @@ -583,10 +583,10 @@ function start(opts) {
}

return {
...wmts,
id,
name: (serving.styles[id] || serving.rendered[id]).name,
baseUrl,
...wmts,
};
});

Expand All @@ -599,9 +599,9 @@ function start(opts) {
}

return {
...data,
id,
is_vector: data.tileJSON.format === 'pbf',
...data,
};
});

Expand Down

0 comments on commit c161667

Please sign in to comment.