[editor] Fix number-of-lines mode causing type-error

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2023-03-06 14:27:54 +01:00
parent 722cfe76c7
commit 1f62c131d6
Signed by: luzifer
GPG key ID: D91C3E91E4CAD6F5

View file

@ -407,6 +407,7 @@ export default {
delete obj.message_interval
} else if (this.models.autoMessage.sendMode === 'lines') {
delete obj.cron
obj.message_interval = Number(obj.message_interval) // Enforce this is a number, not a string
}
let promise = null