fix: re-enable Test Button when editing notification channel.

This commit is contained in:
killian-larcher
2026-02-16 16:14:41 +01:00
parent 2a4af58a51
commit 1b791fd287
2 changed files with 2 additions and 2 deletions
@@ -224,7 +224,7 @@ export const ChannelForm = ({onSuccessAction, organization, defaultValues, kind}
<div className="flex justify-between mt-4"> <div className="flex justify-between mt-4">
<div> <div>
{kind == "storage" && ( {(!isCreate || kind == "storage") && (
<ChannelTestButton <ChannelTestButton
kind={kind} kind={kind}
organizationId={organization?.id} organizationId={organization?.id}
@@ -34,7 +34,7 @@ export const ChannelTestButton = ({channel, organizationId, kind}: NotifierTestC
message: `We are testing channel ${channel.name}`, message: `We are testing channel ${channel.name}`,
level: 'info', level: 'info',
}; };
const result = await dispatchNotification(payload, undefined, channel, organizationId); const result = await dispatchNotification(payload, undefined, channel.id, organizationId);
if (result.success) { if (result.success) {
toast.success(result.message); toast.success(result.message);