Skip to content

Commit

Permalink
Fix model name generate logic in generate components script
Browse files Browse the repository at this point in the history
  • Loading branch information
satyambnsal authored Dec 21, 2023
1 parent 98bf326 commit 6ae740a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/bin/generateComponents.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ manifest.models.forEach((model) => {
let result = model.name.split("::").pop().split("_");
let modelName = result
.map((part) => {
return part === part.toLowerCase() && part.length > 2
return part === part.toLowerCase() && part.length > 1
? part.charAt(0).toUpperCase() + part.slice(1)
: part.toUpperCase();
})
Expand Down

0 comments on commit 6ae740a

Please sign in to comment.