Merge pull request #3399 from wmarshall/bug/3398-parseSearch-typo
Fix parseSearch typo
This commit is contained in:
@@ -4,7 +4,7 @@ import System from "core/system"
|
|||||||
import win from "core/window"
|
import win from "core/window"
|
||||||
import ApisPreset from "core/presets/apis"
|
import ApisPreset from "core/presets/apis"
|
||||||
import * as AllPlugins from "core/plugins/all"
|
import * as AllPlugins from "core/plugins/all"
|
||||||
import { parseSeach, filterConfigs } from "core/utils"
|
import { parseSearch, filterConfigs } from "core/utils"
|
||||||
|
|
||||||
const CONFIGS = [
|
const CONFIGS = [
|
||||||
"url",
|
"url",
|
||||||
@@ -83,7 +83,7 @@ module.exports = function SwaggerUI(opts) {
|
|||||||
store: { },
|
store: { },
|
||||||
}
|
}
|
||||||
|
|
||||||
let queryConfig = parseSeach()
|
let queryConfig = parseSearch()
|
||||||
|
|
||||||
const constructorConfig = deepExtend({}, defaults, opts, queryConfig)
|
const constructorConfig = deepExtend({}, defaults, opts, queryConfig)
|
||||||
|
|
||||||
|
|||||||
@@ -546,7 +546,7 @@ export const getSampleSchema = (schema, contentType="", config={}) => {
|
|||||||
return JSON.stringify(memoizedSampleFromSchema(schema, config), null, 2)
|
return JSON.stringify(memoizedSampleFromSchema(schema, config), null, 2)
|
||||||
}
|
}
|
||||||
|
|
||||||
export const parseSeach = () => {
|
export const parseSearch = () => {
|
||||||
let map = {}
|
let map = {}
|
||||||
let search = window.location.search
|
let search = window.location.search
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user