project-booster-vue 10.22.26 → 10.22.27

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": "project-booster-vue",
3
- "version": "10.22.26",
3
+ "version": "10.22.27",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -50,19 +50,26 @@
50
50
  </template>
51
51
 
52
52
  <script lang="ts" setup>
53
- import { useStore } from 'vuex';
53
+ import { ScenarioStepAnswer } from '@/types/pb/Scenario';
54
54
  import { MButton, MLink } from '@mozaic-ds/vue-3';
55
- import { ScenarioProduct, ScenarioStepAnswer } from '@/types/pb/Scenario';
56
- import { defineProps, PropType, onMounted, ref, Ref, computed } from 'vue';
55
+ import { PropType, defineProps, onMounted, ref } from 'vue';
56
+ import { useStore } from 'vuex';
57
57
  import { PayloadAction } from '../types/genericPayload';
58
- import { formatEvent, EventTypeEnum } from '../services/event';
59
58
 
60
59
  const emit = defineEmits(['go-back', 'step-completed']);
61
60
 
62
61
  const store = useStore();
63
62
  const metadata = store.getters['metaData/metaData'];
64
63
  const refProduct = store.getters['products/getRefProduct'];
65
- const product = computed(() => store.getters['products/getCurrentProduct']);
64
+ const product = ref(store.getters['products/getCurrentProduct']);
65
+
66
+ if (!product.value) {
67
+ product.value = {
68
+ designation: 'Désignation par défaut',
69
+ photo: 'Photo par défaut',
70
+ value: 'Valeur par défaut',
71
+ };
72
+ }
66
73
 
67
74
  const props = defineProps({
68
75
  /**