fix: no need for empty url check in pending init

pull/3170/head
yougotwill 8 months ago
parent 1a8d9bc27a
commit 8bf711a2e2

@ -84,7 +84,7 @@ export const Image = (props: Props) => {
);
const { caption } = attachment || { caption: null };
const [pending, setPending] = useState<boolean>(attachment.pending || !url || true);
const [pending, setPending] = useState<boolean>(attachment.pending || true);
const [mounted, setMounted] = useState<boolean>(
(!loading || !pending) && urlToLoad === undefined
);

Loading…
Cancel
Save