From 73c9cb1d51db851b4d368d1eab46363185460e9c Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Sun, 10 Apr 2022 00:39:50 +0200 Subject: [PATCH] Revert source configuration changes --- src/routes/applications/[id]/configuration/source.svelte | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/routes/applications/[id]/configuration/source.svelte b/src/routes/applications/[id]/configuration/source.svelte index 2f23de4d8..e5c05ebdd 100644 --- a/src/routes/applications/[id]/configuration/source.svelte +++ b/src/routes/applications/[id]/configuration/source.svelte @@ -46,12 +46,15 @@ (source.type === 'github' && source.githubAppId && source.githubApp.installationId) || (source.type === 'gitlab' && source.gitlabAppId) ); - console.log(filteredSources); 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) => { - return source.teams.filter((team) => team.id !== $session.teamId); + if (source.teams[0].id !== $session.teamId) { + return source; + } }); async function handleSubmit(gitSourceId) {