[ENG-1272] Tag color picker switches back to first tag when releasing the mouse (#1567)

Update index.tsx
This commit is contained in:
ameer2468 2023-10-13 17:40:53 +03:00 committed by GitHub
parent 57ca557f17
commit 4d99f16bae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,7 +26,7 @@ export const Component = () => {
useEffect(() => {
if (tags?.data?.length || (0 > 1 && !selectedTag)) setSelectedTag(tags.data?.[0] ?? null);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [tags?.data]);
}, []);
return (
<>