This commit is contained in:
kakkokari-gtyih 2023-10-27 23:00:47 +09:00
parent 44b842b47d
commit 24ec9ccce3
1 changed files with 2 additions and 1 deletions

View File

@ -45,7 +45,8 @@ export default function(props: MfmProps) {
const isNote = props.isNote ?? true;
const shouldNyaize = props.nyaize ? props.nyaize === 'account' ? props.author?.isCat : false : false;
if (props.text === '') return;
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
if (props.text == null || props.text === '') return;
const rootAst = (props.plain ? mfm.parseSimple : mfm.parse)(props.text);