mirror of https://github.com/statping/statping
Fix logic
check if it is var1 is not necessary because telegram only needs strings and no numberspull/1081/head
parent
5a0639a14e
commit
e764f639d0
|
@ -282,7 +282,7 @@ export default {
|
||||||
this.notifier.form.forEach((f) => {
|
this.notifier.form.forEach((f) => {
|
||||||
let field = f.field.toLowerCase()
|
let field = f.field.toLowerCase()
|
||||||
let val = this.notifier[field]
|
let val = this.notifier[field]
|
||||||
if (this.isNumeric(val) && (this.form.method!='telegram' && field != 'var1')) {
|
if (this.isNumeric(val) && this.form.method!='telegram') {
|
||||||
val = parseInt(val)
|
val = parseInt(val)
|
||||||
}
|
}
|
||||||
this.form[field] = val
|
this.form[field] = val
|
||||||
|
@ -304,7 +304,7 @@ export default {
|
||||||
this.notifier.form.forEach((f) => {
|
this.notifier.form.forEach((f) => {
|
||||||
let field = f.field.toLowerCase()
|
let field = f.field.toLowerCase()
|
||||||
let val = this.notifier[field]
|
let val = this.notifier[field]
|
||||||
if (this.isNumeric(val) && (this.form.method!='telegram' && field != 'var1')) {
|
if (this.isNumeric(val) && this.form.method!='telegram') {
|
||||||
val = parseInt(val)
|
val = parseInt(val)
|
||||||
}
|
}
|
||||||
this.form[field] = val
|
this.form[field] = val
|
||||||
|
|
Loading…
Reference in New Issue