From 7363776079192f25b50631825c97ab1c49363a11 Mon Sep 17 00:00:00 2001 From: Will Marshall Date: Mon, 17 Jul 2017 13:35:26 -0700 Subject: [PATCH 1/2] parseSeach -> parseSearch --- src/core/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/utils.js b/src/core/utils.js index 5ba837c6..95771fb4 100644 --- a/src/core/utils.js +++ b/src/core/utils.js @@ -546,7 +546,7 @@ export const getSampleSchema = (schema, contentType="", config={}) => { return JSON.stringify(memoizedSampleFromSchema(schema, config), null, 2) } -export const parseSeach = () => { +export const parseSearch = () => { let map = {} let search = window.location.search From 1d9e71ff3ef2b9310714eba361f1003b85cd08ca Mon Sep 17 00:00:00 2001 From: Will Marshall Date: Mon, 17 Jul 2017 13:39:06 -0700 Subject: [PATCH 2/2] parseSeach -> parseSearch in index.js --- src/core/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/index.js b/src/core/index.js index 1d80e125..8a0d77b3 100644 --- a/src/core/index.js +++ b/src/core/index.js @@ -4,7 +4,7 @@ import System from "core/system" import win from "core/window" import ApisPreset from "core/presets/apis" import * as AllPlugins from "core/plugins/all" -import { parseSeach, filterConfigs } from "core/utils" +import { parseSearch, filterConfigs } from "core/utils" const CONFIGS = [ "url", @@ -83,7 +83,7 @@ module.exports = function SwaggerUI(opts) { store: { }, } - let queryConfig = parseSeach() + let queryConfig = parseSearch() const constructorConfig = deepExtend({}, defaults, opts, queryConfig)