fix: ref attribute in markdown causes page crash (#11369)

Co-authored-by: crazywoola <427733928@qq.com>
This commit is contained in:
Joel 2024-12-05 10:15:21 +08:00 • committed by GitHub
commit 284bb7ac71
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 30 deletions

View file

@ -53,8 +53,7 @@ const ImageGallery: FC<Props> = ({
imagePreviewUrl && (
<ImagePreview
url={imagePreviewUrl}
onCancel={() => setImagePreviewUrl('')}
/>
onCancel={() => setImagePreviewUrl('')} title={''} />
)
}
</div>