Skip to content

Commit c42b83f

Browse files
committed
Always load the new chip, then switch to the builtin if necessary. (#189)
Closes #187.
1 parent f0baaa4 commit c42b83f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

components/src/stores/chip.store.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,10 +239,9 @@ export function makeChipStore(
239239
) {
240240
chipName = storage["/chip/chip"] = chip;
241241
dispatch.current({ action: "setChip", payload: chipName });
242+
this.loadChip(project, chipName);
242243
if (usingBuiltin) {
243244
this.useBuiltin();
244-
} else {
245-
this.loadChip(project, chipName);
246245
}
247246
},
248247

0 commit comments

Comments
 (0)