|
@@ -79,7 +79,6 @@ const SlackIntegration = (props) => {
|
|
|
}, [fetchSlackIntegrationData]);
|
|
}, [fetchSlackIntegrationData]);
|
|
|
|
|
|
|
|
const handleBotTypeSelect = async(clickedBotType) => {
|
|
const handleBotTypeSelect = async(clickedBotType) => {
|
|
|
- console.log('handleBot');
|
|
|
|
|
if (clickedBotType === currentBotType) {
|
|
if (clickedBotType === currentBotType) {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
@@ -90,11 +89,9 @@ const SlackIntegration = (props) => {
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
catch (error) {
|
|
catch (error) {
|
|
|
- console.log(error);
|
|
|
|
|
|
|
+ toastError(error);
|
|
|
}
|
|
}
|
|
|
- setCurrentBotType(clickedBotType);
|
|
|
|
|
-
|
|
|
|
|
- return;
|
|
|
|
|
|
|
+ return setCurrentBotType(clickedBotType);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
setSelectedBotType(clickedBotType);
|
|
setSelectedBotType(clickedBotType);
|