Skip to content

Commit

Permalink
fix(playlist): fix empty recommendations
Browse files Browse the repository at this point in the history
- Don't show a placehilder when to playlist id is set
  • Loading branch information
AntonLantukh committed Jan 31, 2023
1 parent 01ad7ca commit 0d31f4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/hooks/useContentProtection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const useContentProtection = <T>(

const queryResult = useQuery<T | undefined>([type, id, params, token], async () => callback(token, drmPolicyId), {
enabled: !!id && enabled && (!signingEnabled || !!token),
placeholderData: placeholderData,
placeholderData: id ? placeholderData : undefined,
retry: type === 'media' ? 2 : false,
retryDelay: 1000,
keepPreviousData: true,
Expand Down
2 changes: 1 addition & 1 deletion test-e2e/tests/home_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,5 +147,5 @@ Scenario('I can see the footer', ({ I }) => {
I.see('jwplayer.com');
I.click('jwplayer.com');
I.switchToNextTab();
I.seeCurrentUrlEquals('https://www.jwplayer.com/');
I.seeCurrentUrlEquals('https://jwplayer.com/');
});

0 comments on commit 0d31f4e

Please sign in to comment.