Use state instead of component hand-down for managing filter

This commit is contained in:
Kyle Shockey
2017-07-11 21:54:56 -07:00
parent cf12091d93
commit 28f7a15fe9
5 changed files with 16 additions and 33 deletions

View File

@@ -52,7 +52,9 @@ module.exports = function SwaggerUI(opts) {
store: { },
}
const constructorConfig = deepExtend({}, defaults, opts)
let queryConfig = parseSeach()
const constructorConfig = deepExtend({}, defaults, opts, queryConfig)
const storeConfigs = deepExtend({}, constructorConfig.store, {
system: {
@@ -83,7 +85,6 @@ module.exports = function SwaggerUI(opts) {
store.register([constructorConfig.plugins, inlinePlugin])
var system = store.getSystem()
let queryConfig = parseSeach()
system.initOAuth = system.authActions.configureAuth