From ac4ef3fdd45ceaee2d8fc3ef0402b9d0e86a775b Mon Sep 17 00:00:00 2001 From: Anna Bodnia Date: Wed, 10 May 2017 15:20:32 +0300 Subject: [PATCH] fixes #3045 order of configs inheratance --- src/core/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/index.js b/src/core/index.js index c5235360..daef0111 100644 --- a/src/core/index.js +++ b/src/core/index.js @@ -81,7 +81,7 @@ module.exports = function SwaggerUI(opts) { } let localConfig = system.specSelectors.getLocalConfig ? system.specSelectors.getLocalConfig() : {} - let mergedConfig = deepExtend({}, constructorConfig, localConfig, fetchedConfig || {}, queryConfig) + let mergedConfig = deepExtend({}, localConfig, constructorConfig, fetchedConfig || {}, queryConfig) store.setConfigs(filterConfigs(mergedConfig)) if (fetchedConfig !== null) {