mirror of
https://github.com/hexastack/hexabot
synced 2024-11-24 04:53:41 +00:00
fix: predicate
This commit is contained in:
parent
310d9e47aa
commit
9a4aa004d2
@ -475,12 +475,14 @@ const Diagrams = () => {
|
|||||||
|
|
||||||
queryClient.removeQueries({
|
queryClient.removeQueries({
|
||||||
predicate: ({ queryKey }) => {
|
predicate: ({ queryKey }) => {
|
||||||
const [qType, qEntity] = queryKey;
|
const [qType, qEntity, qId] = queryKey;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
(qType === QueryType.collection &&
|
(qType === QueryType.collection &&
|
||||||
isSameEntity(qEntity, EntityType.BLOCK)) ||
|
isSameEntity(qEntity, EntityType.BLOCK) &&
|
||||||
isSameEntity(qEntity, EntityType.CATEGORY)
|
qId === selectedCategoryId) ||
|
||||||
|
(isSameEntity(qEntity, EntityType.CATEGORY) &&
|
||||||
|
qId === selectedCategoryId)
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user