mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-03 18:40:00 +08:00
fix(core): fix react error (#6692)

This commit is contained in:
@@ -472,9 +472,7 @@ const ImagePreviewModalImpl = (
|
|||||||
};
|
};
|
||||||
|
|
||||||
const ErrorLogger = (props: FallbackProps) => {
|
const ErrorLogger = (props: FallbackProps) => {
|
||||||
useEffect(() => {
|
console.error('image preview modal error', props.error);
|
||||||
console.error('image preview modal error', props.error);
|
|
||||||
}, [props.error]);
|
|
||||||
return null;
|
return null;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user