Skip to content

Commit c379510

Browse files
1ilitewqazxc
authored andcommitted
Remove dependencies (drawdb-io#666)
1 parent 5a7f4f2 commit c379510

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
@@ -125,14 +125,14 @@ export default function Share({ title, setModal }) {
125125
await updateGist();
126126
}
127127
} catch (e) {
128-
console.error(e);
129128
setError(e);
130129
} finally {
131130
setLoading(false);
132131
}
133132
};
134133
updateOrGenerateLink();
135-
}, [gistId, generateLink, updateGist]);
134+
// eslint-disable-next-line react-hooks/exhaustive-deps
135+
}, []);
136136

137137
const copyLink = () => {
138138
navigator.clipboard

0 commit comments

Comments
 (0)