Skip to content

Commit a66f3c7

Browse files
committed
Revert "fix: ensure not filters are initialized correctly"
This reverts commit 0c0aa41.
1 parent f557d03 commit a66f3c7

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

clients/search-component/src/utils/hooks/chat-context.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -889,18 +889,18 @@ function ChatProvider({ children }: { children: React.ReactNode }) {
889889
filters.should == null
890890
) {
891891
filters = null;
892-
}
893892

894-
if (notFilter) {
895-
if (filters == null || (filters as ChunkFilter).must_not == null) {
896-
filters = { must_not: [] };
897-
}
893+
if (notFilter) {
894+
if (filters == null) {
895+
filters = { must_not: [] };
896+
}
898897

899-
if (filters?.must_not) {
900-
filters.must_not.push({
901-
field: "group_ids",
902-
match_any: groupIdsInChat,
903-
});
898+
if (filters?.must_not) {
899+
filters.must_not.push({
900+
field: "group_ids",
901+
match_any: groupIdsInChat,
902+
});
903+
}
904904
}
905905
}
906906

0 commit comments

Comments
 (0)