Skip to content

Commit 6e08939

Browse files
committed
fix: Missing parameter
1 parent 6260aad commit 6e08939

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

src/commands/createIcon.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@ import { fetchXml } from '../libs/fetchXml';
44
import { generateComponent } from '../libs/generateComponent';
55

66
export const createIcon = () => {
7-
const {
8-
symbol_url: url,
9-
} = getConfig();
7+
const config = getConfig();
108

11-
fetchXml(url).then((result) => {
12-
generateComponent(result);
9+
fetchXml(config.symbol_url).then((result) => {
10+
generateComponent(result, config);
1311
}).catch((e) => {
1412
console.error(colors.red(e.message || 'Unknown Error'));
1513
process.exit(1);

0 commit comments

Comments
 (0)