From ed8bb7e00be1c75f582f10a0e5e8b13c9a4758c7 Mon Sep 17 00:00:00 2001 From: Jonas Metzener Date: Wed, 26 Oct 2022 10:11:35 +0200 Subject: [PATCH] fix(distribution): only show closed at in detail if inquiry is closed --- packages/distribution/addon/config.js | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/packages/distribution/addon/config.js b/packages/distribution/addon/config.js index 3394902a6..198dfc6e3 100644 --- a/packages/distribution/addon/config.js +++ b/packages/distribution/addon/config.js @@ -69,11 +69,15 @@ export default function config(target, property) { value: inquiry.assignedUsers, type: "user", }, - { - label: "caluma.distribution.inquiry.closed-at", - value: inquiry.closedAt, - type: "date", - }, + ...(inquiry.closedAt + ? [ + { + label: "caluma.distribution.inquiry.closed-at", + value: inquiry.closedAt, + type: "date", + }, + ] + : []), ], }, },