Skip to content

Commit

Permalink
revert bad change
Browse files Browse the repository at this point in the history
  • Loading branch information
csouchet committed Sep 21, 2023
1 parent ba09dd0 commit 035e723
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev/ts/shared/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ function configureStyleFromParameters(parameters: URLSearchParams): void {
// Collect style properties to update them later with the bpmn-visualization API
logStartup(`Configuring the "Update Style" API from query parameters`);
// Only create the StyleUpdate object if some parameters are set
if (Object.keys(parameters).some(key => key.startsWith('style.api.'))) {
if ([...parameters.keys()].some(key => key.startsWith('style.api.'))) {
style = { stroke: {}, font: {}, fill: {} };

parameters.get('style.api.stroke.color') && (style.stroke.color = parameters.get('style.api.stroke.color'));
Expand Down

0 comments on commit 035e723

Please sign in to comment.