Commit 44b3fd1 1 parent eeee6c9 commit 44b3fd1 Copy full SHA for 44b3fd1
File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -38,27 +38,27 @@ module.exports = {
38
38
SiteMutation : {
39
39
async updateConfig ( obj , args , context ) {
40
40
try {
41
- if ( args . host ) {
41
+ if ( args . hasOwnProperty ( ' host' ) ) {
42
42
let siteHost = _ . trim ( args . host )
43
43
if ( siteHost . endsWith ( '/' ) ) {
44
44
siteHost = siteHost . slice ( 0 , - 1 )
45
45
}
46
46
WIKI . config . host = siteHost
47
47
}
48
48
49
- if ( args . title ) {
49
+ if ( args . hasOwnProperty ( ' title' ) ) {
50
50
WIKI . config . title = _ . trim ( args . title )
51
51
}
52
52
53
- if ( args . company ) {
53
+ if ( args . hasOwnProperty ( ' company' ) ) {
54
54
WIKI . config . company = _ . trim ( args . company )
55
55
}
56
56
57
- if ( args . contentLicense ) {
57
+ if ( args . hasOwnProperty ( ' contentLicense' ) ) {
58
58
WIKI . config . contentLicense = args . contentLicense
59
59
}
60
60
61
- if ( args . logoUrl ) {
61
+ if ( args . hasOwnProperty ( ' logoUrl' ) ) {
62
62
WIKI . config . logoUrl = _ . trim ( args . logoUrl )
63
63
}
64
64
You can’t perform that action at this time.
0 commit comments