mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-04 14:33:34 +00:00
[ENG-1272] Tag color picker switches back to first tag when releasing the mouse (#1567)
Update index.tsx
This commit is contained in:
parent
57ca557f17
commit
4d99f16bae
|
@ -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 (
|
||||
<>
|
||||
|
|
Loading…
Reference in a new issue