Don't allow adding songs to smart playlists

This commit is contained in:
Deluan
2022-10-02 13:56:39 -04:00
parent 552989a05b
commit 3d5a1cef92
4 changed files with 10 additions and 5 deletions
+2 -2
View File
@@ -51,7 +51,7 @@ describe('SelectPlaylistInput', () => {
data: mockIndexedData,
list: {
cachedRequests: {
'{"pagination":{"page":1,"perPage":-1},"sort":{"field":"name","order":"ASC"},"filter":{}}':
'{"pagination":{"page":1,"perPage":-1},"sort":{"field":"name","order":"ASC"},"filter":{"smart":false}}':
{
ids: ['sample-id1', 'sample-id2'],
total: 2,
@@ -70,7 +70,7 @@ describe('SelectPlaylistInput', () => {
await waitFor(() => {
expect(mockDataProvider.getList).toHaveBeenCalledWith('playlist', {
filter: {},
filter: { smart: false },
pagination: { page: 1, perPage: -1 },
sort: { field: 'name', order: 'ASC' },
})