Merge pull request #1768 from christopherpickering/patch-1

[beta] prevent null workstation #'s from passing..
This commit is contained in:
Louis Lam 2022-06-15 15:33:03 +08:00 committed by GitHub
commit bef0febede
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "uptime-kuma",
"version": "1.16.1",
"version": "1.17.0-beta.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "uptime-kuma",
"version": "1.16.1",
"version": "1.17.0-beta.0",
"license": "MIT",
"dependencies": {
"@fortawesome/fontawesome-svg-core": "~1.2.36",

View File

@ -283,7 +283,7 @@ class Monitor extends BeanModel {
username: this.basic_auth_user,
password: this.basic_auth_pass,
domain: this.authDomain,
workstation: this.authWorkstation,
workstation: this.authWorkstation ? this.authWorkstation : undefined
});
} else {