Skip to content

Commit

Permalink
fix(core): add fallback for sweeper insertion rules
Browse files Browse the repository at this point in the history
  • Loading branch information
vittee committed Feb 12, 2024
1 parent b800a42 commit ec6b642
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/core/src/station/station.ts
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,11 @@ export class Station extends TypedEmitter<StationEvents> {

this.#profile = profile;
this.#boombox.sweeperInsertionRules = profile.sweeperRules;

if (this.#boombox.sweeperInsertionRules.length === 0 && id !== 'default') {
this.#boombox.sweeperInsertionRules = this.getProfile('default')?.sweeperRules ?? [];
}

return profile;
}

Expand Down

0 comments on commit ec6b642

Please sign in to comment.