From b479e0d500ccd11df6e31fb191d32b0cb830ba24 Mon Sep 17 00:00:00 2001 From: Arnei Date: Wed, 10 Jun 2026 11:20:47 +0200 Subject: [PATCH] Fix datetime-local field for workflow config datetime-local fields in workflow config panels would not render, this patch fixes that. It also fixes a bug where the specified value for the field would be ignored. --- src/utils/workflowPanelUtils.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/utils/workflowPanelUtils.ts b/src/utils/workflowPanelUtils.ts index 5d6dbf8823..4caeba38f2 100644 --- a/src/utils/workflowPanelUtils.ts +++ b/src/utils/workflowPanelUtils.ts @@ -38,8 +38,7 @@ const fillDefaultConfig = ( defaultConfiguration[field.name] = field.value; } else if (field.type === "datetime-local") { const date = new Date(new Date().toString().split("GMT")[0] + " UTC").toISOString().split(".")[0]; - defaultConfiguration[field.name] = date; - field.defaultValue = date; + defaultConfiguration[field.name] = field.value ? field.value : date; // set value in default configuration } else { defaultConfiguration[field.name] = field.value;