mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-11-08 16:20:02 +00:00
[editor] [#28] Fix: Allow saving with empty optional duration
resolves #28 Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
40fb93962c
commit
417759eb4e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue