Skip to content

Commit

Permalink
fix: cli api bug, when config was not defined.
Browse files Browse the repository at this point in the history
  • Loading branch information
DanilSord committed Mar 11, 2022
1 parent cab8aba commit 21f9646
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const apiTemplate = `import { Api } from 'web-soft-client';
*/
export let api = {};
export const loadApi = async () => {
export const loadApi = async (config = {}) => {
const loadedApi = new Api(config);
await loadedApi.build();
api = loadedApi;
Expand Down

0 comments on commit 21f9646

Please sign in to comment.