project-booster-vue 10.22.8 → 10.22.9
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
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
import { useStore } from 'vuex';
|
|
62
62
|
import { MButton, MLink } from '@mozaic-ds/vue-3';
|
|
63
63
|
import { ScenarioProduct, ScenarioStepAnswer } from '@/types/pb/Scenario';
|
|
64
|
-
import { defineProps, PropType, onMounted, ref, Ref } from 'vue';
|
|
64
|
+
import { defineProps, PropType, onMounted, ref, Ref, computed } from 'vue';
|
|
65
65
|
import { PayloadAction } from '../types/genericPayload';
|
|
66
66
|
import { formatEvent, EventTypeEnum } from '../services/event';
|
|
67
67
|
|
|
@@ -70,11 +70,7 @@ const emit = defineEmits(['go-back', 'step-completed']);
|
|
|
70
70
|
const store = useStore();
|
|
71
71
|
const metadata = store.getters['metaData/metaData'];
|
|
72
72
|
const refProduct = store.getters['products/getRefProduct'];
|
|
73
|
-
const product
|
|
74
|
-
photo: '',
|
|
75
|
-
designation: '',
|
|
76
|
-
value: '',
|
|
77
|
-
});
|
|
73
|
+
const product = computed(() => store.getters['products/getCurrentProduct']);
|
|
78
74
|
|
|
79
75
|
const props = defineProps({
|
|
80
76
|
/**
|
|
@@ -139,7 +135,6 @@ onMounted(() => {
|
|
|
139
135
|
payload: props.payload.viewModel.defaultProduct,
|
|
140
136
|
storeId: metadata && metadata.storeId ? metadata.storeId : '',
|
|
141
137
|
});
|
|
142
|
-
product.value = store.getters['products/getCurrentProduct'];
|
|
143
138
|
}
|
|
144
139
|
});
|
|
145
140
|
|