Skip to content

Commit a378054

Browse files
authored
fix: fix credential type mismatch in AppPage component (calcom#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.
1 parent 253c33d commit a378054

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

packages/trpc/server/routers/viewer/apps/appCredentialsByType.handler.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,12 @@ export const appCredentialsByTypeHandler = async ({ ctx, input }: AppCredentials
5555

5656
// For app pages need to return which teams the user can install the app on
5757
// return user.credentials.filter((app) => app.type == input.appType).map((credential) => credential.id);
58+
const allCredentials: Array<(typeof delegationCredentials)[number] | (typeof credentials)[number]> = [
59+
...delegationCredentials,
60+
...credentials,
61+
];
5862
return {
59-
credentials: [...delegationCredentials, ...credentials],
63+
credentials: allCredentials,
6064
userAdminTeams: userAdminTeamsIds,
6165
};
6266
};

0 commit comments

Comments
 (0)