From a37805439b22d10c420a03e4083f2cf925c87705 Mon Sep 17 00:00:00 2001 From: Anik Dhabal Babu <81948346+anikdhabal@users.noreply.github.com> Date: Sat, 20 Dec 2025 22:41:35 +0530 Subject: [PATCH] fix: fix credential type mismatch in AppPage component (#25802) * test * update * Refactor create-event-type.input.ts for slug handling Removed unused import and transformation for slug. * Remove slugify transformation from slug field Removed slugify transformation from slug property. * Remove slugify transformation from slug field Removed slugify transformation from slug property. --- .../routers/viewer/apps/appCredentialsByType.handler.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/trpc/server/routers/viewer/apps/appCredentialsByType.handler.ts b/packages/trpc/server/routers/viewer/apps/appCredentialsByType.handler.ts index c3f339f550..324649dbf5 100644 --- a/packages/trpc/server/routers/viewer/apps/appCredentialsByType.handler.ts +++ b/packages/trpc/server/routers/viewer/apps/appCredentialsByType.handler.ts @@ -55,8 +55,12 @@ export const appCredentialsByTypeHandler = async ({ ctx, input }: AppCredentials // For app pages need to return which teams the user can install the app on // return user.credentials.filter((app) => app.type == input.appType).map((credential) => credential.id); + const allCredentials: Array<(typeof delegationCredentials)[number] | (typeof credentials)[number]> = [ + ...delegationCredentials, + ...credentials, + ]; return { - credentials: [...delegationCredentials, ...credentials], + credentials: allCredentials, userAdminTeams: userAdminTeamsIds, }; };