Skip to content

Commit

Permalink
fix(core): Fix undefined reference error in product variant resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Feb 5, 2024
1 parent 16285e7 commit 5afa6bc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export class ProductVariantEntityResolver {
@Ctx() ctx: RequestContext,
@Parent() productVariant: ProductVariant,
): Promise<Product | undefined> {
if (productVariant.product.name) {
if (productVariant.product?.name) {
return productVariant.product;
}

Expand Down

0 comments on commit 5afa6bc

Please sign in to comment.