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.
This commit is contained in:
Anik Dhabal Babu
2025-12-20 17:11:35 +00:00
committed by GitHub
parent 253c33df33
commit a37805439b
@@ -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,
};
};