Specify empty array as hasFinishedResolution args.

This is to make things consistent with invalidateResolution to make things work with WP 5.9.
This commit is contained in:
Gan Eng Chin 2023-03-14 03:35:20 +08:00
parent 5a58784a62
commit 0316fbb265
No known key found for this signature in database
GPG Key ID: 94D5D972860ADB01
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ export const useRecommendedChannels = (): UseRecommendedChannels => {
} ); } );
return { return {
loading: ! hasFinishedResolution( 'getRecommendedChannels' ), loading: ! hasFinishedResolution( 'getRecommendedChannels', [] ),
data: nonActiveRecommendedChannels, data: nonActiveRecommendedChannels,
error, error,
}; };