From 8ea3cfd00fc58fa6b96a25b0cf5c0f1fdc62f05d Mon Sep 17 00:00:00 2001 From: John Bednarczyk Date: Wed, 26 Jan 2022 05:47:42 -0600 Subject: [PATCH] fix(plugins): make swagger-js wrapActions overridable (#7753) Co-authored-by: John Bednarczyk Co-authored-by: Vladimir Gorej Refs #7730 --- src/core/plugins/swagger-js/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/core/plugins/swagger-js/index.js b/src/core/plugins/swagger-js/index.js index 3944d680..cf08cf01 100644 --- a/src/core/plugins/swagger-js/index.js +++ b/src/core/plugins/swagger-js/index.js @@ -3,7 +3,7 @@ import { execute, buildRequest } from "swagger-client/es/execute" import Http, { makeHttp, serializeRes } from "swagger-client/es/http" import resolveSubtree from "swagger-client/es/subtree-resolver" import { opId } from "swagger-client/es/helpers" -import * as configsWrapActions from "./configs-wrap-actions" +import { loaded } from "./configs-wrap-actions" export default function({ configs, getConfigs }) { return { @@ -30,7 +30,9 @@ export default function({ configs, getConfigs }) { }, statePlugins: { configs: { - wrapActions: configsWrapActions + wrapActions: { + loaded, + } } }, }