Remove duplicate guard from custom renderer fixture

This commit is contained in:
creatixchu committed 2026-09-18 15:24:00 +08:00
1 parent c538c4ec8f
commit 2cea45edc6
1 file changed
-1
@@ -48,7 +48,6 @@ it('lets a non-Office renderer load content, report its version, and reload thro
}
const renderSlot: TextPreviewProps['renderSlot'] = (name, input) => {
if (name !== 'sidebar.right.tab.document') return null
if (key !== 'sidebar.right.tab.document') return null
const owner = input as unknown as OwnerOf<'sidebar.right.tab.document'>
return <CustomBody content={owner.content} />
}