@lancom/shared 0.0.292 → 0.0.293

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.
@@ -127,7 +127,7 @@ export function generateProductsLink($route, data) {
127
127
  }
128
128
 
129
129
  export function generateProductLink(product, color, toEditor = false) {
130
- const baseLink = `/${product.brand.alias}/${product.productType.alias}/${product.alias}`;
130
+ const baseLink = `/${product.brand?.alias}/${product.productType?.alias}/${product.alias}`;
131
131
  return `${toEditor ? `${baseLink}/editor` : baseLink}${color ? `?color=${color.alias}` : ''}`;
132
132
  }
133
133
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lancom/shared",
3
- "version": "0.0.292",
3
+ "version": "0.0.293",
4
4
  "description": "lancom common scripts",
5
5
  "author": "e.tokovenko <e.tokovenko@gmail.com>",
6
6
  "repository": {