Commit d87d7301 authored by Anton's avatar Anton

Do not throw on failed metadata request in piecemaker source tab

parent 6f832703
......@@ -88,7 +88,13 @@
const videos = result.items
const entries = []
for (let annotation of videos) {
const meta = await this.$store.dispatch('metadata/get', annotation)
let meta = {}
try {
meta = await this.$store.dispatch('metadata/get', annotation)
}
catch (e) {
console.error('Failed to fetch metadata', e.message)
}
const entry = { annotation }
entry.title = meta.title || this.$t('labels.title_unknown')
entries.push(entry)
......
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