diff --git a/contentcuration/contentcuration/frontend/channelEdit/components/edit/DetailsTabView.vue b/contentcuration/contentcuration/frontend/channelEdit/components/edit/DetailsTabView.vue index ec6c56d582..e319fc452a 100644 --- a/contentcuration/contentcuration/frontend/channelEdit/components/edit/DetailsTabView.vue +++ b/contentcuration/contentcuration/frontend/channelEdit/components/edit/DetailsTabView.vue @@ -705,10 +705,11 @@ audioVideoFiles = this.nodeFiles.filter(file => this.allowedFileType(file)); // return the last item in the array const file = audioVideoFiles[audioVideoFiles.length - 1]; - return file.duration; - } else { - return null; + if (file) { + return file.duration; + } } + return null; }, videoSelected() { return this.oneSelected && this.firstNode.kind === ContentKindsNames.VIDEO;