From 8daccf3a80dc217f3805abe9a1b4f8d682e3accf Mon Sep 17 00:00:00 2001 From: 1ilit <1ilit@proton.me> Date: Tue, 28 Oct 2025 21:34:38 +0400 Subject: [PATCH] Remove dependencies --- src/components/EditorHeader/Modal/Share.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/EditorHeader/Modal/Share.jsx b/src/components/EditorHeader/Modal/Share.jsx index 7ffc87f3e..a8f80f8de 100644 --- a/src/components/EditorHeader/Modal/Share.jsx +++ b/src/components/EditorHeader/Modal/Share.jsx @@ -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