mirror of
https://github.com/AppFlowy-IO/AppFlowy-Web.git
synced 2026-03-13 10:02:51 +08:00
chore: code review
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user