much lint very lint

This commit is contained in:
Jorrin
2024-03-22 19:59:37 +01:00
parent 50a46b1e08
commit 974eeb73b1
2 changed files with 2 additions and 7 deletions

View File

@@ -81,14 +81,12 @@ const EmbedsPart = ({
const theme = useTheme();
const { data, isPending, isError, error, status } = useSourceScrape(sourceId);
console.log(data);
useEffect(() => {
if (status === "success" && !isError && data && data?.length <= 1) {
props.onOpenChange?.(false);
closeParent?.(false);
}
}, [props.onOpenChange, status, data, isError]);
}, [status, data, isError, props, closeParent]);
return (
<Settings.Sheet