Skip to content

Commit

Permalink
Fixing redundant categories call
Browse files Browse the repository at this point in the history
  • Loading branch information
Ark2307 committed Nov 6, 2024
1 parent 7b01ba3 commit 5b2af53
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,9 @@ const transform = {
}

if(result?.value?.categories && result?.value?.categories !== undefined && result?.value?.categories.length > 0){
categories.push(...result.value.categories);
if(categories.length === 0){
categories.push(...result.value.categories);
}
}
}
}
Expand Down

0 comments on commit 5b2af53

Please sign in to comment.