@saooti/octopus-sdk 37.0.39 → 37.0.41

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": "@saooti/octopus-sdk",
3
- "version": "37.0.39",
3
+ "version": "37.0.41",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -257,6 +257,7 @@ export default defineComponent({
257
257
  });
258
258
  this.saveOrganisation = this.organisation;
259
259
  if (0 === this.rubriquageData.length) return;
260
+
260
261
  if (initArrayFilter && this.rubriquageData[0].rubriquageId) {
261
262
  this.arrayFilter.push({
262
263
  rubriquageId: this.rubriquageData[0].rubriquageId,
@@ -264,6 +265,17 @@ export default defineComponent({
264
265
  nameRubriquage: this.rubriquageData[0].title,
265
266
  nameRubrique: "",
266
267
  });
268
+ }else{
269
+ const arrayFilterToUpdate = [];
270
+ for(const filter of this.arrayFilter){
271
+ const rubriquageExist = this.rubriquageData.find( (element) => element.rubriquageId === filter.rubriquageId);
272
+ if(rubriquageExist){
273
+ arrayFilterToUpdate.push(filter);
274
+ }
275
+ }
276
+ if(arrayFilterToUpdate.length !== this.arrayFilter.length){
277
+ this.arrayFilter = arrayFilterToUpdate;
278
+ }
267
279
  }
268
280
  },
269
281
  resetRubriqueFilter(): void {
@@ -250,7 +250,7 @@ export default defineComponent({
250
250
  iFrameHeight(): string {
251
251
  switch (this.iFrameModel) {
252
252
  case "video":
253
- return "auto";
253
+ return "281px";
254
254
  case "large":
255
255
  if (this.podcast) return "140px";
256
256
  return "350px";