🐛 Fix import typebots

This commit is contained in:
Baptiste Arnaud 2026-03-27 11:07:49 +01:00
parent cb2430ba84
commit a56dc49b2a
No known key found for this signature in database

View File

@ -37,6 +37,7 @@ const omittedProps = {
resultsTablePreferences: true,
selectedThemeTemplateId: true,
publicId: true,
spaceId: true,
} as const;
const importingTypebotSchema = z.preprocess(
@ -76,6 +77,7 @@ const migrateImportingTypebot = async (
whatsAppCredentialsId: null,
publicId: null,
riskLevel: null,
spaceId: null,
} satisfies Partial<Typebot>;
return (await migrateTypebot(fullTypebot)).typebot;
};