Skip to content

Commit

Permalink
fix: updated the call in fetchBoilerplateDetails
Browse files Browse the repository at this point in the history
  • Loading branch information
harshithad0703 committed Jul 19, 2024
1 parent 6e1b0ad commit 72e40ad
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/util/common-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -400,9 +400,7 @@ const handleProjectNameConflict = async (
};
async function fetchBoilerplateDetails(): Promise<Record<string, any>[]> {
try {
const url = config.boilerplatesUrl;
const client = new HttpClient();
const content = await client.get(url);
const content = await new HttpClient().get(config.boilerplatesUrl);
return content?.data?.templates ?? [];
} catch (error) {
throw error;
Expand Down

0 comments on commit 72e40ad

Please sign in to comment.