fix: check if metadata exist in job_queue

Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
Stefan Dej 2021-11-28 01:18:25 +01:00
parent 678eda0e8c
commit 3f4eeadb6f
No known key found for this signature in database
GPG Key ID: 5D3A5823133D2246

View File

@ -86,7 +86,7 @@
</td>
<td class=" ">
{{ item.filename }}
<template v-if="item.metadata.metadataPulled">
<template v-if="existMetadata(item)">
<br />
<small>{{ getDescription(item) }}</small>
</template>
@ -239,5 +239,9 @@ export default class JobqueuePanel extends Mixins(BaseMixin) {
return output
}
existMetadata(item: ServerJobQueueStateJob) {
return item?.metadata?.metadataPulled
}
}
</script>