fix: Integration and auth problems wrt slack and twitter
This commit is contained in:
@@ -19,11 +19,16 @@ export default {
|
||||
},
|
||||
});
|
||||
|
||||
if (response.integrationError || response.data.ok === 'false') {
|
||||
if (response.integrationError) {
|
||||
channels.error = response.integrationError;
|
||||
return channels;
|
||||
}
|
||||
|
||||
if (response.data.ok === 'false') {
|
||||
channels.error = response.data.error;
|
||||
return channels;
|
||||
}
|
||||
|
||||
channels.data = response.data.channels.map((channel: IJSONObject) => {
|
||||
return {
|
||||
value: channel.id,
|
||||
|
Reference in New Issue
Block a user