Skip to content

The open alternative to Salesforce, designed for AI.

Fix upgrade command 0.42

Charles Bochet41bbb4b47f32
diff --git a/packages/twenty-front/src/modules/ui/input/components/TextInputV2.tsx b/packages/twenty-front/src/modules/ui/input/components/TextInputV2.tsx
index 79460bb40e9..56d6272a06f 100644
--- a/packages/twenty-front/src/modules/ui/input/components/TextInputV2.tsx
+++ b/packages/twenty-front/src/modules/ui/input/components/TextInputV2.tsx
@@ -189,7 +189,7 @@ const TextInputV2Component = forwardRef<
LeftIcon,
autoComplete,
maxLength,
- sizeVariant = 'md',
+ sizeVariant = 'lg',
inheritFontStyles = false,
dataTestId,
autoGrow = false,
diff --git a/packages/twenty-server/src/database/commands/upgrade-version/0-42/0-42-migrate-rich-text-field.command.ts b/packages/twenty-server/src/database/commands/upgrade-version/0-42/0-42-migrate-rich-text-field.command.ts
index c45b06bac41..3cc3edb7856 100644
--- a/packages/twenty-server/src/database/commands/upgrade-version/0-42/0-42-migrate-rich-text-field.command.ts
+++ b/packages/twenty-server/src/database/commands/upgrade-version/0-42/0-42-migrate-rich-text-field.command.ts
@@ -403,9 +403,19 @@ export class MigrateRichTextFieldCommand extends ActiveWorkspacesCommandRunner {
return null;
}
- return await serverBlockNoteEditor.blocksToMarkdownLossy(
- jsonParsedblocknoteFieldValue,
- );
+ let markdown: string | null = null;
+
+ try {
+ markdown = await serverBlockNoteEditor.blocksToMarkdownLossy(
+ jsonParsedblocknoteFieldValue,
+ );
+ } catch (error) {
+ this.logger.warn(
+ `Error converting blocknote to markdown for ${blocknoteFieldValue}`,
+ );
+ }
+
+ return markdown;
}
private async migrateToNewRichTextFieldsColumn({