Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Commit d4a0e6b

Browse files
authored
Merge pull request #16 from mobify/add-props-fix
Fix type in `ProductSearchHit` `constructFromObject` method
2 parents f58e446 + 7e8bae5 commit d4a0e6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/models/ProductSearchHit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export default class ProductSearchHit {
155155
obj['product_type'] = ProductType.constructFromObject(data['product_type'])
156156
}
157157
if (data.hasOwnProperty('represented_product')) {
158-
obj['represented_product'] = ProductType.constructFromObject(data['represented_product'])
158+
obj['represented_product'] = ProductRef.constructFromObject(data['represented_product'])
159159
}
160160
if (data.hasOwnProperty('represented_products')) {
161161
obj['represented_products'] = ApiClient.convertToType(data['represented_products'], [ProductRef])

0 commit comments

Comments
 (0)