From ec6b642876354b264612790be0e2980b978593bd Mon Sep 17 00:00:00 2001 From: Wittawas Nakkasem <vittee@hotmail.com> Date: Tue, 13 Feb 2024 02:23:22 +0700 Subject: [PATCH] fix(core): add fallback for sweeper insertion rules --- packages/core/src/station/station.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/core/src/station/station.ts b/packages/core/src/station/station.ts index c525b921..193e044b 100644 --- a/packages/core/src/station/station.ts +++ b/packages/core/src/station/station.ts @@ -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; }