Skip to content

Commit

Permalink
fix: suggestions should now clear correctly if the source no longer s…
Browse files Browse the repository at this point in the history
…uggests them
  • Loading branch information
Tethik committed Nov 14, 2023
1 parent b217465 commit 8d6c988
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/suggestions/engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export class SuggestionEngine {
try {
const result = await source.suggest(model);
return {
sourceSlug: source.slug,
sourceSlugToClear: source.slug,
controls: result.controls.map((s) => ({
...s,
id: generateSuggestionId(source.slug, s),
Expand All @@ -87,7 +87,7 @@ export class SuggestionEngine {
error
);
return {
sourceSlug: source.slug,
sourceSlugToClear: source.slug,
controls: [],
threats: [],
};
Expand Down

0 comments on commit 8d6c988

Please sign in to comment.