fix: Integration and auth problems wrt slack and twitter

This commit is contained in:
Faruk AYDIN
2022-10-07 16:05:13 +03:00
parent 2862953136
commit 11ef2ac4bc
8 changed files with 104 additions and 90 deletions

View File

@@ -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,