Skip to content

Commit 22a28d3

Browse files
committed
fix: is variable
1 parent c275a13 commit 22a28d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generators/src/main/java/com/algolia/codegen/cts/AlgoliaCTSGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public Map<String, Object> postProcessSupportingFileData(Map<String, Object> obj
148148

149149
// We can put whatever we want in the bundle, and it will be accessible in the template
150150
bundle.put("mode", mode);
151-
bundle.put("is" + Helpers.capitalize(client) + "Client", true);
151+
bundle.put("is" + Helpers.capitalize(Helpers.camelize(client)) + "Client", true);
152152
bundle.put("isStandaloneClient", client.contains("search") || client.contains("composition"));
153153
bundle.put("isSearchClient", client.contains("search")); // just so algoliasearch is treated as a search client too
154154
bundle.put("client", Helpers.createClientName(importClientName, language) + "Client");

0 commit comments

Comments
 (0)