Commit efa34710 authored by anton's avatar anton

Change fauxVideo body type to Video, do not try to load undefined source.id

parent 40046918
Pipeline #51545 passed with stage
in 5 minutes and 36 seconds
......@@ -43,7 +43,7 @@
fauxMedia () {
return {
body: {
type: 'Media',
type: 'Video',
purpose: 'linking',
source: {
id: this.cell ? this.cell.source._value.content : undefined
......@@ -66,7 +66,7 @@
},
async mounted () {
// if (this.cell && this.cell.data.id) {
if (this.cell && this.cell.id) {
if (this.cell && this.cell.id && this.cell.source._value.id) {
// this.video = await this.$store.dispatch('annotations/get', this.cell.source.id)
this.video = await this.$store.dispatch('annotations/get', this.cell.source._value.id)
if (this.video) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment