refactor: straightened logic, replaces throttle with mantine debounced
This commit is contained in:
@ -18,7 +18,9 @@ const useStatusesList = ({ boardId }: Props) => {
|
||||
useEffect(() => {
|
||||
if (boardId === undefined) {
|
||||
setStatuses([]);
|
||||
} else if (data?.statuses) {
|
||||
return;
|
||||
}
|
||||
if (data?.statuses) {
|
||||
setStatuses(data.statuses);
|
||||
}
|
||||
}, [data?.statuses, boardId]);
|
||||
|
||||
Reference in New Issue
Block a user