File tree Expand file tree Collapse file tree 6 files changed +9
-5
lines changed
Expand file tree Collapse file tree 6 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ export async function GET() {
2424 createdAt : credentialSetInvitation . createdAt ,
2525 credentialSetId : credentialSet . id ,
2626 credentialSetName : credentialSet . name ,
27+ providerId : credentialSet . providerId ,
2728 organizationId : organization . id ,
2829 organizationName : organization . name ,
2930 invitedByName : user . name ,
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ export async function GET() {
2424 credentialSetId : credentialSet . id ,
2525 credentialSetName : credentialSet . name ,
2626 credentialSetDescription : credentialSet . description ,
27+ providerId : credentialSet . providerId ,
2728 organizationId : organization . id ,
2829 organizationName : organization . name ,
2930 } )
Original file line number Diff line number Diff line change @@ -333,7 +333,7 @@ function buildWebhookMetadata(block: BlockState): WebhookMetadata | null {
333333 // Handle credential sets vs individual credentials
334334 const isCredentialSet = triggerCredentials ?. startsWith ( CREDENTIAL_SET_PREFIX )
335335 const credentialSetId = isCredentialSet
336- ? triggerCredentials . slice ( CREDENTIAL_SET_PREFIX . length )
336+ ? triggerCredentials ! . slice ( CREDENTIAL_SET_PREFIX . length )
337337 : undefined
338338 const credentialId = isCredentialSet ? undefined : triggerCredentials
339339
Original file line number Diff line number Diff line change @@ -505,7 +505,7 @@ export function CredentialSets() {
505505 < div key = { invitation . invitationId } className = 'flex items-center justify-between' >
506506 < div className = 'flex items-center gap-[12px]' >
507507 < div className = 'flex h-9 w-9 items-center justify-center rounded-[6px] bg-[var(--surface-5)]' >
508- < GmailIcon className = 'h-4 w-4' />
508+ { getProviderIcon ( invitation . providerId ) }
509509 </ div >
510510 < div className = 'flex flex-col' >
511511 < span className = 'font-medium text-[14px]' >
@@ -541,7 +541,7 @@ export function CredentialSets() {
541541 < div key = { membership . membershipId } className = 'flex items-center justify-between' >
542542 < div className = 'flex items-center gap-[12px]' >
543543 < div className = 'flex h-9 w-9 items-center justify-center rounded-[6px] bg-[var(--surface-5)]' >
544- < GmailIcon className = 'h-4 w-4' />
544+ { getProviderIcon ( membership . providerId ) }
545545 </ div >
546546 < div className = 'flex flex-col' >
547547 < span className = 'font-medium text-[14px]' >
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ export interface CredentialSetMembership {
2121 credentialSetId : string
2222 credentialSetName : string
2323 credentialSetDescription : string | null
24+ providerId : string | null
2425 organizationId : string
2526 organizationName : string
2627}
@@ -33,6 +34,7 @@ export interface CredentialSetInvitation {
3334 createdAt : string
3435 credentialSetId : string
3536 credentialSetName : string
37+ providerId : string | null
3638 organizationId : string
3739 organizationName : string
3840 invitedByName : string | null
Original file line number Diff line number Diff line change @@ -240,7 +240,7 @@ export function useWebhookManagement({
240240
241241 const isCredentialSet = selectedCredentialId ?. startsWith ( CREDENTIAL_SET_PREFIX )
242242 const credentialSetId = isCredentialSet
243- ? selectedCredentialId . slice ( CREDENTIAL_SET_PREFIX . length )
243+ ? selectedCredentialId ! . slice ( CREDENTIAL_SET_PREFIX . length )
244244 : undefined
245245 const credentialId = isCredentialSet ? undefined : selectedCredentialId
246246
@@ -306,7 +306,7 @@ export function useWebhookManagement({
306306
307307 const isCredentialSet = selectedCredentialId ?. startsWith ( CREDENTIAL_SET_PREFIX )
308308 const credentialSetId = isCredentialSet
309- ? selectedCredentialId . slice ( CREDENTIAL_SET_PREFIX . length )
309+ ? selectedCredentialId ! . slice ( CREDENTIAL_SET_PREFIX . length )
310310 : undefined
311311 const credentialId = isCredentialSet ? undefined : selectedCredentialId
312312
You can’t perform that action at this time.
0 commit comments