chore: code review

This commit is contained in:
Lucas.Xu
2026-01-27 13:04:44 +08:00
parent 48df2f6d61
commit fc19d5edfc

View File

@@ -13,9 +13,8 @@ function VideoEmpty({ node, error }: { node: VideoBlockNode; error?: string }) {
const readOnly = useReadOnly() || editor.isElementReadOnly(node as unknown as Element);
// Translate error if it's a translation key (starts with 'document.plugins.video.')
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const displayMessage = error && error.startsWith('document.plugins.video.')
? t(error as any)
? t(error as any) // eslint-disable-line @typescript-eslint/no-explicit-any
: error || t('embedAVideo');
return (