fix(Filter): fix stale state issue

This commit is contained in:
Aminejv 2021-10-14 18:52:01 +01:00
parent eafb38b004
commit f2e0eee6a1

View File

@ -85,7 +85,7 @@ const useFilterWorker = ({ filterState, setFilterObjects, library }) => {
setFilterObjects(e.data);
},
},
[view, subview, type]
[view, subview, library, type]
);
return workerState;