Skip to content

Commit

Permalink
fix: pass empty hash to getRuntimeConfig if undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr committed Aug 7, 2023
1 parent 1b49e75 commit a786a95
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ private void generateConstructor() {
writer.pushState(CLIENT_CONSTRUCTOR_SECTION);

int configVariable = 0;
writer.write("let $L = __getRuntimeConfig(configuration);",
writer.write("let $L = __getRuntimeConfig(configuration || {});",
generateConfigVariable(configVariable));

if (service.hasTrait(EndpointRuleSetTrait.class)) {
Expand Down

0 comments on commit a786a95

Please sign in to comment.