@sedoo/unidoo 0.1.66 → 0.1.68

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": "@sedoo/unidoo",
3
- "version": "0.1.66",
3
+ "version": "0.1.68",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "build": "npm run build:unidoo && npm run build:auth",
@@ -32,7 +32,10 @@ export default {
32
32
  },
33
33
  computed: {
34
34
  links() {
35
- return this.entries.map((entry) => entry.media.content);
35
+ if (Array.isArray(this.entries)) {
36
+ return this.entries.map((entry) => entry.media.content);
37
+ }
38
+ return [];
36
39
  }
37
40
  },
38
41
  watch: {
@@ -144,7 +144,7 @@ export default {
144
144
  progressBarTitle: { type: String, default: 'Loading image' },
145
145
  clickableFrame: { type: Boolean, default: true },
146
146
  playerBarTop: { type: Boolean, default: true },
147
- entries: { type: Array, default: null },
147
+ entries: { type: Array, default: () => [] },
148
148
  displayThumbnails: { type: Boolean, default: false }
149
149
  },
150
150