@burh/nuxt-core 1.0.483 → 1.0.484

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.
@@ -298,13 +298,15 @@ export default {
298
298
  },
299
299
  computed: {
300
300
  isAllCoursesSelected() {
301
- return this.coursesToSend.length === this.courses.length;
301
+ return ((this.coursesToSend && this.coursesToSend.length) && (this.courses && this.courses.length)) && this.coursesToSend.length === this.courses.length;
302
302
  }
303
303
  },
304
304
  methods: {
305
305
  handleSelectAllCourses() {
306
306
  if (!this.isAllCoursesSelected) {
307
- this.coursesToSend = this.courses.map(course => course.id);
307
+ if (this.courses && this.courses.length) {
308
+ this.coursesToSend = this.courses.map(course => course.id);
309
+ }
308
310
  } else {
309
311
  this.coursesToSend = [];
310
312
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burh/nuxt-core",
3
- "version": "1.0.483",
3
+ "version": "1.0.484",
4
4
  "description": "Design System and Components.",
5
5
  "author": "Burh",
6
6
  "scripts": {