Skip to content

Commit

Permalink
Clear chips menu where there are no hdl projects
Browse files Browse the repository at this point in the history
  • Loading branch information
netalondon committed Sep 16, 2024
1 parent 8f07a70 commit 3600214
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/src/stores/chip.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,8 @@ export function makeChipStore(

if (hdlProjects.length > 0) {
await actions.setProject(sortedNames[0]);
} else {
dispatch.current({ action: "setChips", payload: [] });
}

dispatch.current({ action: "clearChip" });
Expand Down

0 comments on commit 3600214

Please sign in to comment.