@saooti/octopus-sdk 30.0.75 → 30.0.76

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/README.md CHANGED
@@ -571,4 +571,5 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
571
571
  * 30.0.72 Ajout des traductions
572
572
  * 30.0.73 Ajout classe css
573
573
  * 30.0.74 Error locales en allemand (je sens que ça va être fun cette histoire)
574
- * 30.0.75 Parlement
574
+ * 30.0.75 Parlement
575
+ * 30.0.76 Space
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saooti/octopus-sdk",
3
- "version": "30.0.75",
3
+ "version": "30.0.76",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -218,13 +218,21 @@ export default defineComponent({
218
218
  }
219
219
  event.preventDefault();
220
220
  const rubriqueChosenId = this.rubriqueId[this.rubriqueId.length - 1];
221
- const rubriqueChosen = this.$store.state.filter.rubriquageArray[this.rubriqueId.length - 1].rubriques.find((element: Rubrique) => element.rubriqueId === rubriqueChosenId);
222
- const filterToAdd = {
223
- rubriquageId: this.$store.state.filter.rubriquageArray[this.rubriqueId.length - 1].rubriquageId,
221
+ let filterToAdd: RubriquageFilter = {
222
+ rubriquageId: 0,
224
223
  rubriqueId: rubriqueChosenId,
225
- nameRubriquage: this.$store.state.filter.rubriquageArray[this.rubriqueId.length - 1].title,
226
- nameRubrique: rubriqueChosen.name
224
+ nameRubriquage: '',
225
+ nameRubrique: ''
227
226
  };
227
+ if(this.$store.state.filter.rubriquageArray.length){
228
+ const rubriqueChosen = this.$store.state.filter.rubriquageArray[this.rubriqueId.length - 1].rubriques.find((element: Rubrique) => element.rubriqueId === rubriqueChosenId);
229
+ filterToAdd = {
230
+ rubriquageId: this.$store.state.filter.rubriquageArray[this.rubriqueId.length - 1].rubriquageId,
231
+ rubriqueId: rubriqueChosenId,
232
+ nameRubriquage: this.$store.state.filter.rubriquageArray[this.rubriqueId.length - 1].title,
233
+ nameRubrique: rubriqueChosen.name
234
+ };
235
+ }
228
236
  const newFilter: Array<RubriquageFilter> = Array.from(this.$store.state.filter.rubriqueFilter);
229
237
  newFilter.push(filterToAdd);
230
238
  this.$store.commit('filterRubrique', newFilter);
@@ -26,6 +26,7 @@
26
26
  </template>
27
27
 
28
28
  <script lang="ts">
29
+ //@ts-ignore
29
30
  import VSwatches from 'vue3-swatches';
30
31
  import { defineComponent } from 'vue';
31
32
  export default defineComponent({
@@ -91,6 +91,7 @@
91
91
  import ClassicCheckbox from '../../form/ClassicCheckbox.vue';
92
92
  import Snackbar from '../../misc/Snackbar.vue';
93
93
  import moment from 'moment';
94
+ //@ts-ignore
94
95
  import VSwatches from 'vue3-swatches';
95
96
  // @ts-ignore
96
97
  import humanizeDuration from 'humanize-duration';