From ad85bea25a4d123bc733a0f9fe7cfcf68106e9b9 Mon Sep 17 00:00:00 2001 From: Steven Hildreth Date: Thu, 20 Jan 2022 14:07:33 -0600 Subject: [PATCH] Exclude dynamic Playlist when searching --- Roadie.Api.Services/PlaylistService.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Roadie.Api.Services/PlaylistService.cs b/Roadie.Api.Services/PlaylistService.cs index bc0883a..cbfaa0f 100644 --- a/Roadie.Api.Services/PlaylistService.cs +++ b/Roadie.Api.Services/PlaylistService.cs @@ -495,7 +495,8 @@ namespace Roadie.Api.Services .ConfigureAwait(false); // Dynamic list of favorites - if (!request.FilterToArtistId.HasValue && !request.FilterToReleaseId.HasValue && roadieUser != null) + if (string.IsNullOrWhiteSpace(normalizedFilterValue) && + !request.FilterToArtistId.HasValue && !request.FilterToReleaseId.HasValue && roadieUser != null) { var userFavoriteTracks = from ut in DbContext.UserTracks join t in DbContext.Tracks on ut.TrackId equals t.Id