tango-app-api-store-builder 1.0.38 → 1.0.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-app-api-store-builder",
3
- "version": "1.0.38",
3
+ "version": "1.0.39",
4
4
  "description": "storeBuilder",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -3430,7 +3430,7 @@ export async function fixtureShelfProductv2( req, res ) {
3430
3430
  if ( mappingCompliance?.compliance == 'misplaced' ) {
3431
3431
  Object.keys( shelfMapping ).forEach( ( ele ) => {
3432
3432
  let eleArr = ele.split( ',' );
3433
- if ( eleArr.includes( productData.brandName.toLowerCase() ) ) {
3433
+ if ( eleArr.includes( productData?.brandName?.toLowerCase() ) ) {
3434
3434
  mappingCompliance = { ...mappingCompliance, fixtureDetails: shelfMapping[ele]?.[0] || {} };
3435
3435
  }
3436
3436
  } );