|
|
@@ -51,7 +51,7 @@ const CustomBotWithProxySettings = (props) => {
|
|
|
}
|
|
|
};
|
|
|
|
|
|
- const generateTokenHandler = async(tokenGtoP, tokenPtoG) => {
|
|
|
+ const regenerateTokensHandler = async(tokenGtoP, tokenPtoG) => {
|
|
|
try {
|
|
|
await appContainer.apiv3.put('/slack-integration-settings/access-tokens', { tokenGtoP, tokenPtoG });
|
|
|
}
|
|
|
@@ -142,7 +142,7 @@ const CustomBotWithProxySettings = (props) => {
|
|
|
<WithProxyAccordions
|
|
|
botType="customBotWithProxy"
|
|
|
discardTokenHandler={() => discardTokenHandler(tokenGtoP, tokenPtoG)}
|
|
|
- onClickRegenerateTokens={generateTokenHandler(tokenGtoP, tokenPtoG)}
|
|
|
+ onClickRegenerateTokens={regenerateTokensHandler(tokenGtoP, tokenPtoG)}
|
|
|
tokenGtoP={tokenGtoP}
|
|
|
tokenPtoG={tokenPtoG}
|
|
|
/>
|