Skip to content

Commit 87f7504

Browse files
authored
Remove dependencies (#666)
1 parent 2e4b3e4 commit 87f7504

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/EditorHeader/Modal/Share.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,14 @@ export default function Share({ title, setModal }) {
7777
await patch(gistId, SHARE_FILENAME, diagramToString());
7878
}
7979
} catch (e) {
80-
console.error(e);
8180
setError(e);
8281
} finally {
8382
setLoading(false);
8483
}
8584
};
8685
updateOrGenerateLink();
87-
}, [gistId, diagramToString, setGistId]);
86+
// eslint-disable-next-line react-hooks/exhaustive-deps
87+
}, []);
8888

8989
const copyLink = () => {
9090
navigator.clipboard

0 commit comments

Comments
 (0)