fix(fe): bug with displaying deploy tasks with incorrect state

This commit is contained in:
Denis Gukov 2022-01-17 01:37:59 +05:00
parent 312cafa23c
commit 904fa6fcc1
2 changed files with 5 additions and 5 deletions

View File

@ -48,8 +48,8 @@
<TaskLink
:disabled="item.tpl_type === 'build'"
:task-id="item.build_task_id"
:tooltip="item.tpl_type === 'build' ? item.message : item.build_task.message"
:label="item.tpl_type === 'build' ? item.version : item.build_task.version"
:tooltip="item.tpl_type === 'build' ? item.message : (item.build_task || {}).message"
:label="item.tpl_type === 'build' ? item.version : (item.build_task || {}).version"
:status="item.status"
/>
</div>

View File

@ -136,15 +136,15 @@
:task-id="item.last_task.tpl_type === 'build'
? item.last_task.id
: item.last_task.build_task.id"
: (item.last_task.build_task || {}).id"
:label="item.last_task.tpl_type === 'build'
? item.last_task.version
: item.last_task.build_task.version"
: (item.last_task.build_task || {}).version"
:tooltip="item.last_task.tpl_type === 'build'
? item.last_task.message
: item.last_task.build_task.message"
: (item.last_task.build_task || {}).message"
/>
<div v-else>&mdash;</div>
</template>