mirror of
https://github.com/urosran/cally.git
synced 2025-11-26 08:24:55 +00:00
- Changed the members dependency check when defining the todo filter options
This commit is contained in:
@ -128,7 +128,7 @@ const ToDosList = ({ isSettings, members }: { isSettings?: boolean, members?: Ar
|
|||||||
|
|
||||||
let selectedOption = options?.find((option) => option.value === user?.uid);
|
let selectedOption = options?.find((option) => option.value === user?.uid);
|
||||||
setSelectedFilter(selectedOption);
|
setSelectedFilter(selectedOption);
|
||||||
}, [members]);
|
}, [JSON.stringify(members)]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (toDos && selectedFilter) {
|
if (toDos && selectedFilter) {
|
||||||
|
|||||||
Reference in New Issue
Block a user