Apply suggestions from code review
Co-authored-by: Vincenzo Scamporlino <vincenzos@spotify.com> Signed-off-by: Aramis Sennyey <34432188+sennyeya@users.noreply.github.com>
This commit is contained in:
@@ -36,7 +36,7 @@ export function useAllEntitiesCount() {
|
||||
limit: 0,
|
||||
};
|
||||
|
||||
if (Object.keys(catalogFilters).length === 0) {
|
||||
if (Object.keys(catalogFilters.filter).length === 0) {
|
||||
prevRequest.current = undefined;
|
||||
return prevRequest.current;
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ export function useOwnedEntitiesCount() {
|
||||
|
||||
useDeepCompareEffect(() => {
|
||||
// context contains no filter, wait
|
||||
if (Object.keys(catalogFilters).length === 0) {
|
||||
if (Object.keys(catalogFilters.filter).length === 0) {
|
||||
return;
|
||||
}
|
||||
// ownershipEntityRefs is loading, wait
|
||||
|
||||
Reference in New Issue
Block a user