[editor] [#28] Fix: Allow saving with empty optional duration

resolves #28

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2022-05-05 22:55:02 +02:00
parent 40fb93962c
commit 417759eb4e
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D

View file

@ -1058,7 +1058,7 @@ export default {
return false 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` this.validateReason = `${action.type} -> ${field.key} -> duration`
return false return false
} }