From 417759eb4e6cacd03bbfd51a132bd567fa3c3bc0 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Thu, 5 May 2022 22:55:02 +0200 Subject: [PATCH] [editor] [#28] Fix: Allow saving with empty optional duration resolves #28 Signed-off-by: Knut Ahlers --- src/rules.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rules.vue b/src/rules.vue index 92b07f4..aae7180 100644 --- a/src/rules.vue +++ b/src/rules.vue @@ -1058,7 +1058,7 @@ export default { return false } - if (field.type === 'duration' && !this.validateDuration(action.attributes[field.key], field.optional)) { + if (field.type === 'duration' && !this.validateDuration(action.attributes[field.key], !field.optional)) { this.validateReason = `${action.type} -> ${field.key} -> duration` return false }