project-booster-vue 10.22.6 → 10.22.8
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
|
@@ -108,8 +108,8 @@ export const answerGettersMappers: Map<string, (param: any) => void> = new Map<s
|
|
|
108
108
|
MPbNameInput: ({ projectName }: { projectName: string }) => projectName,
|
|
109
109
|
MPbCitySearch: ({ city }: { city: any }) => city.postalCode,
|
|
110
110
|
MPbIncrementalAmountInput: ({ value }: { value: string }) => parseInt(value),
|
|
111
|
-
MPbProducts: ({ product }: { product:
|
|
112
|
-
return { product };
|
|
111
|
+
MPbProducts: ({ product }: { product: ProductPayload }): { product: ProductPayload } => {
|
|
112
|
+
return { product: product };
|
|
113
113
|
},
|
|
114
114
|
MPbDimensionsInput: ({ width, length }: { width: string; length: string }): { width: number; length: number } => {
|
|
115
115
|
return { width: parseFloat(width), length: parseFloat(length) };
|
|
@@ -134,7 +134,7 @@ const props = defineProps({
|
|
|
134
134
|
* onMounted load product and load this
|
|
135
135
|
*/
|
|
136
136
|
onMounted(() => {
|
|
137
|
-
if (store.hasModule('products
|
|
137
|
+
if (store.hasModule('products')) {
|
|
138
138
|
store.dispatch('products/loadProduct', {
|
|
139
139
|
payload: props.payload.viewModel.defaultProduct,
|
|
140
140
|
storeId: metadata && metadata.storeId ? metadata.storeId : '',
|
|
@@ -155,7 +155,7 @@ const callAction = (action: PayloadAction) => {
|
|
|
155
155
|
let productToSend = null;
|
|
156
156
|
|
|
157
157
|
if (refProduct) {
|
|
158
|
-
productToSend = product;
|
|
158
|
+
productToSend = product.value;
|
|
159
159
|
}
|
|
160
160
|
|
|
161
161
|
emit('step-completed', {
|