From abe17f92ef08b165454e2aae3dcd302df74726f2 Mon Sep 17 00:00:00 2001 From: Helder Sepulveda Date: Sat, 31 Mar 2018 23:38:14 -0400 Subject: [PATCH] Set the value if set is available --- src/core/plugins/oas3/components/http-auth.jsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/plugins/oas3/components/http-auth.jsx b/src/core/plugins/oas3/components/http-auth.jsx index 9750f2dd..078f5439 100644 --- a/src/core/plugins/oas3/components/http-auth.jsx +++ b/src/core/plugins/oas3/components/http-auth.jsx @@ -36,6 +36,9 @@ export default class HttpAuth extends React.Component { let newValue = this.state.value || {} if(name) { newValue[name] = value + if(newValue.set) { + newValue = newValue.set(name, value) + } } else { newValue = value }