fix: broken integration

This commit is contained in:
Carl-Gerhard Lindesvärd
2025-10-22 17:18:49 +02:00
parent 49a4f5b8ae
commit e3d3627c16
6 changed files with 9 additions and 10 deletions

View File

@@ -21,13 +21,12 @@ export function DiscordIntegrationForm({
defaultValues?: RouterOutputs['integration']['get'];
onSuccess: () => void;
}) {
const { organizationId, projectId } = useAppParams();
const { organizationId } = useAppParams();
const form = useForm<IForm>({
defaultValues: mergeDeepRight(
{
id: defaultValues?.id,
organizationId,
projectId,
config: {
type: 'discord' as const,
url: '',

View File

@@ -19,13 +19,12 @@ export function SlackIntegrationForm({
defaultValues?: RouterOutputs['integration']['get'];
onSuccess: () => void;
}) {
const { organizationId, projectId } = useAppParams();
const { organizationId } = useAppParams();
const form = useForm<IForm>({
defaultValues: {
id: defaultValues?.id,
organizationId,
projectId,
name: defaultValues?.name ?? '',
},
resolver: zodResolver(zCreateSlackIntegration),