fix(xo-web/backup-ng): transfer/merge tasks not displayed in the logs (#4140)

Introduced by 865d2df124
This commit is contained in:
badrAZ 2019-04-11 17:12:47 +02:00 committed by Pierre Donias
parent 2f644d5eeb
commit f47df961f7

View File

@ -283,7 +283,9 @@ const TaskLi = ({ className, task, ...props }) => {
if (
(Component = defined(
() => COMPONENT_BY_TYPE[task.data.type.toLowerCase()],
COMPONENT_BY_MESSAGE[task.message]
// work-around to not let defined handle the component as a safety function
() => COMPONENT_BY_MESSAGE[task.message]
)) === undefined
) {
return null