Skip to content

Commit

Permalink
fix(elasticsearch-plugin): Fix null productVariantPreview error
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Aug 29, 2019
1 parent 92abbcb commit 571f7af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/elasticsearch-plugin/src/elasticsearch.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ export class ElasticsearchService {
productName: source.productName[0],
productVariantId: source.productVariantId[0].toString(),
productVariantName: source.productVariantName[0],
productVariantPreview: source.productVariantPreview[0],
productVariantPreview: source.productVariantPreview[0] || '',
facetIds: source.facetIds as string[],
facetValueIds: source.facetValueIds as string[],
collectionIds: source.collectionIds as string[],
Expand Down

0 comments on commit 571f7af

Please sign in to comment.