Revert source configuration changes

This commit is contained in:
Andras Bacsai 2022-04-10 00:39:50 +02:00
parent 41c5dd3b53
commit 73c9cb1d51

View File

@ -46,12 +46,15 @@
(source.type === 'github' && source.githubAppId && source.githubApp.installationId) || (source.type === 'github' && source.githubAppId && source.githubApp.installationId) ||
(source.type === 'gitlab' && source.gitlabAppId) (source.type === 'gitlab' && source.gitlabAppId)
); );
console.log(filteredSources);
const ownSources = filteredSources.filter((source) => { const ownSources = filteredSources.filter((source) => {
return source.teams.filter((team) => team.id === $session.teamId); if (source.teams[0].id === $session.teamId) {
return source;
}
}); });
const otherSources = filteredSources.filter((source) => { const otherSources = filteredSources.filter((source) => {
return source.teams.filter((team) => team.id !== $session.teamId); if (source.teams[0].id !== $session.teamId) {
return source;
}
}); });
async function handleSubmit(gitSourceId) { async function handleSubmit(gitSourceId) {