@symbolic/lib
Advanced tools
Comparing version 1.0.225 to 1.0.226
{ | ||
"name": "@symbolic/lib", | ||
"version": "1.0.225", | ||
"version": "1.0.226", | ||
"description": "plain js utilities", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -5,6 +5,7 @@ import _ from "lodash"; | ||
productPricingRuleVersionFor, | ||
defaultProductOptionFor, | ||
// defaultProductOptionFor, | ||
productPropertyClassifierNumberFor, | ||
sortedProductPropertiesForProductInstance, | ||
getArrayQuantityForArrayProductProperty, | ||
productOptionForInstanceProperty, | ||
meljac: {getUsedEngravingCount} | ||
@@ -36,3 +37,6 @@ }) { | ||
else if (_.includes(['productPropertyPrice', 'productPropertyClassifierNumber'], type)) { | ||
var defaultOption = defaultProductOptionFor({productPropertyId: props.productPropertyId}, {productOptionsById}); | ||
var productProperty = _.get(productPropertiesById, props.productPropertyId); | ||
var defaultOption = productOptionForInstanceProperty({productInstance, productProperty}, {productOptionsById, productRulesById, productsById}); | ||
// var defaultOption = defaultProductOptionFor({productPropertyId: props.productPropertyId}, {productOptionsById}); | ||
var selectedOptionId = _.get(productInstance, `properties.${props.productPropertyId}.optionId`, defaultOption.id); | ||
@@ -39,0 +43,0 @@ |
Sorry, the diff of this file is too big to display
154310
2960