fix: just return 204
This commit is contained in:
@@ -93,7 +93,7 @@ function HoverPreviewInternal({ element, onClose }: Props) {
|
||||
React.useEffect(() => {
|
||||
const card = cardRef.current;
|
||||
|
||||
if (data && !data.error) {
|
||||
if (data) {
|
||||
startOpenTimer();
|
||||
|
||||
if (card) {
|
||||
@@ -134,7 +134,7 @@ function HoverPreviewInternal({ element, onClose }: Props) {
|
||||
return <LoadingIndicator />;
|
||||
}
|
||||
|
||||
if (!data || data.error) {
|
||||
if (!data) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user