Remove dependencies (#666)

This commit is contained in:
1ilit
2025-10-28 21:39:22 +04:00
committed by GitHub
parent 2e4b3e4e22
commit 87f7504736

View File

@@ -77,14 +77,14 @@ export default function Share({ title, setModal }) {
await patch(gistId, SHARE_FILENAME, diagramToString());
}
} catch (e) {
console.error(e);
setError(e);
} finally {
setLoading(false);
}
};
updateOrGenerateLink();
}, [gistId, diagramToString, setGistId]);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
const copyLink = () => {
navigator.clipboard