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:
@@ -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,
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user