Fix upgrade command 0.42
This commit is contained in:
@ -189,7 +189,7 @@ const TextInputV2Component = forwardRef<
|
|||||||
LeftIcon,
|
LeftIcon,
|
||||||
autoComplete,
|
autoComplete,
|
||||||
maxLength,
|
maxLength,
|
||||||
sizeVariant = 'md',
|
sizeVariant = 'lg',
|
||||||
inheritFontStyles = false,
|
inheritFontStyles = false,
|
||||||
dataTestId,
|
dataTestId,
|
||||||
autoGrow = false,
|
autoGrow = false,
|
||||||
|
|||||||
@ -403,9 +403,19 @@ export class MigrateRichTextFieldCommand extends ActiveWorkspacesCommandRunner {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return await serverBlockNoteEditor.blocksToMarkdownLossy(
|
let markdown: string | null = null;
|
||||||
jsonParsedblocknoteFieldValue,
|
|
||||||
);
|
try {
|
||||||
|
markdown = await serverBlockNoteEditor.blocksToMarkdownLossy(
|
||||||
|
jsonParsedblocknoteFieldValue,
|
||||||
|
);
|
||||||
|
} catch (error) {
|
||||||
|
this.logger.warn(
|
||||||
|
`Error converting blocknote to markdown for ${blocknoteFieldValue}`,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
return markdown;
|
||||||
}
|
}
|
||||||
|
|
||||||
private async migrateToNewRichTextFieldsColumn({
|
private async migrateToNewRichTextFieldsColumn({
|
||||||
|
|||||||
Reference in New Issue
Block a user