We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f557d03 commit a66f3c7Copy full SHA for a66f3c7
1 file changed
clients/search-component/src/utils/hooks/chat-context.tsx
@@ -889,18 +889,18 @@ function ChatProvider({ children }: { children: React.ReactNode }) {
889
filters.should == null
890
) {
891
filters = null;
892
- }
893
894
- if (notFilter) {
895
- if (filters == null || (filters as ChunkFilter).must_not == null) {
896
- filters = { must_not: [] };
897
+ if (notFilter) {
+ if (filters == null) {
+ filters = { must_not: [] };
+ }
898
899
- if (filters?.must_not) {
900
- filters.must_not.push({
901
- field: "group_ids",
902
- match_any: groupIdsInChat,
903
- });
+ if (filters?.must_not) {
+ filters.must_not.push({
+ field: "group_ids",
+ match_any: groupIdsInChat,
+ });
904
}
905
906
0 commit comments