Skip to content

Commit

Permalink
fix: tests for suggestions breaking
Browse files Browse the repository at this point in the history
  • Loading branch information
mbondyra committed Jul 30, 2020
1 parent efba090 commit 9c3cf8c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,8 @@ export function SuggestionPanel({
if (!stagedPreview && lastSelectedSuggestion !== -1) {
setLastSelectedSuggestion(-1);
}
}, [stagedPreview, lastSelectedSuggestion]);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [stagedPreview]);

if (!activeDatasourceId) {
return null;
Expand Down

0 comments on commit 9c3cf8c

Please sign in to comment.