mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Preserve arrays
This commit is contained in:
parent
4f377c5fa2
commit
0da921311c
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ env = (process.env.NODE_ENV or "development").toLowerCase()
|
||||||
|
|
||||||
merge = (settings, defaults) ->
|
merge = (settings, defaults) ->
|
||||||
for key, value of settings
|
for key, value of settings
|
||||||
if typeof(value) == "object"
|
if typeof(value) == "object" and value not instanceof Array
|
||||||
defaults[key] = merge(settings[key], defaults[key] or {})
|
defaults[key] = merge(settings[key], defaults[key] or {})
|
||||||
else
|
else
|
||||||
defaults[key] = value
|
defaults[key] = value
|
||||||
|
|
Loading…
Reference in a new issue