feat: map multiple webhook events

This commit is contained in:
Rohit
2025-05-28 14:35:57 +05:30
parent 1d3a6674cd
commit b493e6b8fa

View File

@@ -977,7 +977,18 @@ export const IntegrationSettingsModal = ({
{settings.webhooks.map((webhook) => (
<TableRow key={webhook.id}>
<TableCell>{webhook.url}</TableCell>
<TableCell>{formatEventName(webhook.events[0])}</TableCell>
<TableCell>
<Box sx={{ display: 'flex', flexWrap: 'wrap', gap: 0.5 }}>
{webhook.events.map((event) => (
<Chip
key={event}
label={formatEventName(event)}
size="small"
variant="outlined"
/>
))}
</Box>
</TableCell>
<TableCell>{formatLastCalled(webhook.lastCalledAt)}</TableCell>
<TableCell>
<Switch