diff --git a/src/main/services/thrid-party/beat-saver/beat-saver-api.service.ts b/src/main/services/thrid-party/beat-saver/beat-saver-api.service.ts index 8cd4e1e8..8b61cd61 100644 --- a/src/main/services/thrid-party/beat-saver/beat-saver-api.service.ts +++ b/src/main/services/thrid-party/beat-saver/beat-saver-api.service.ts @@ -35,7 +35,8 @@ export class BeatSaverApiService { const enbledTagsString = filter.enabledTags ? Array.from(filter.enabledTags) : null; const excludedTagsString = filter.excludedTags ? Array.from(filter.excludedTags).map(tag => `!${tag}`) : null; - const tags = enbledTagsString || excludedTagsString ? [...enbledTagsString, excludedTagsString].join("|") : null; + let tags = [...(enbledTagsString ?? []), ...(excludedTagsString ?? [])].join("|"); + tags = tags.length > 0 ? tags : null; const params: Record = this.objectToStringRecord({...filter, tags});