Skip to content

Commit 9c3cf8c

Browse files
committed
fix: tests for suggestions breaking
1 parent efba090 commit 9c3cf8c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

x-pack/plugins/lens/public/editor_frame_service/editor_frame/suggestion_panel.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,8 @@ export function SuggestionPanel({
227227
if (!stagedPreview && lastSelectedSuggestion !== -1) {
228228
setLastSelectedSuggestion(-1);
229229
}
230-
}, [stagedPreview, lastSelectedSuggestion]);
230+
// eslint-disable-next-line react-hooks/exhaustive-deps
231+
}, [stagedPreview]);
231232

232233
if (!activeDatasourceId) {
233234
return null;

0 commit comments

Comments
 (0)