Skip to content

Commit

Permalink
chore(core): Clean up redundant comment
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Apr 25, 2019
1 parent 0e0627d commit 5e728d7
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ export class ProductEntityResolver {
@Parent() product: Product,
@Api() apiType: ApiType,
): Promise<Array<Translated<ProductVariant>>> {
// In the shop URL, the parent (Product type) does not have the "enabled"
// field, in which case we should filter out any non-enabled variants too.
const variants = await this.productVariantService.getVariantsByProductId(ctx, product.id);
return variants.filter(v => apiType === 'admin' ? true : v.enabled);
}
Expand Down

0 comments on commit 5e728d7

Please sign in to comment.