Skip to content

Commit

Permalink
fix(ai-help): add related docs (negate missing) (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
fiji-flo authored Jun 27, 2023
1 parent 8bfc556 commit 634bf40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ai/ask.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ pub async fn prepare_ask_req(
break;
}
context.push(doc.content);
if refs.iter().any(|r: &RefDoc| r.slug == doc.slug) {
if !refs.iter().any(|r: &RefDoc| r.slug == doc.slug) {
refs.push(RefDoc {
url: doc.url,
slug: doc.slug,
Expand Down

0 comments on commit 634bf40

Please sign in to comment.