Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wiki-js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
wiki-js
Commits
44b3fd17
Unverified
Commit
44b3fd17
authored
Apr 09, 2022
by
rajatchauhanyti
Committed by
GitHub
Apr 09, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: admin - general settings not saving with empty value (#5165)
parent
eeee6c9a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
site.js
server/graph/resolvers/site.js
+5
-5
No files found.
server/graph/resolvers/site.js
View file @
44b3fd17
...
...
@@ -38,7 +38,7 @@ module.exports = {
SiteMutation
:
{
async
updateConfig
(
obj
,
args
,
context
)
{
try
{
if
(
args
.
h
ost
)
{
if
(
args
.
h
asOwnProperty
(
'host'
)
)
{
let
siteHost
=
_
.
trim
(
args
.
host
)
if
(
siteHost
.
endsWith
(
'/'
))
{
siteHost
=
siteHost
.
slice
(
0
,
-
1
)
...
...
@@ -46,19 +46,19 @@ module.exports = {
WIKI
.
config
.
host
=
siteHost
}
if
(
args
.
title
)
{
if
(
args
.
hasOwnProperty
(
'title'
)
)
{
WIKI
.
config
.
title
=
_
.
trim
(
args
.
title
)
}
if
(
args
.
company
)
{
if
(
args
.
hasOwnProperty
(
'company'
)
)
{
WIKI
.
config
.
company
=
_
.
trim
(
args
.
company
)
}
if
(
args
.
contentLicense
)
{
if
(
args
.
hasOwnProperty
(
'contentLicense'
)
)
{
WIKI
.
config
.
contentLicense
=
args
.
contentLicense
}
if
(
args
.
logoUrl
)
{
if
(
args
.
hasOwnProperty
(
'logoUrl'
)
)
{
WIKI
.
config
.
logoUrl
=
_
.
trim
(
args
.
logoUrl
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment