We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0baaa4 commit aa914e3Copy full SHA for aa914e3
components/src/stores/chip.store.ts
@@ -233,16 +233,15 @@ export function makeChipStore(
233
this.setChip(CHIP_PROJECTS[project][0]);
234
},
235
236
- setChip(
+ async setChip(
237
chip: string,
238
project = storage["/chip/project"] ?? ChipProjects["01"]
239
) {
240
chipName = storage["/chip/chip"] = chip;
241
dispatch.current({ action: "setChip", payload: chipName });
242
+ await this.loadChip(project, chipName);
243
if (usingBuiltin) {
244
this.useBuiltin();
- } else {
245
- this.loadChip(project, chipName);
246
}
247
248
0 commit comments