diff --git a/app/gui/src/controller/searcher.rs b/app/gui/src/controller/searcher.rs index c18b924da36..e32597052ee 100644 --- a/app/gui/src/controller/searcher.rs +++ b/app/gui/src/controller/searcher.rs @@ -652,7 +652,7 @@ impl Searcher { debug!("Previewing suggestion: \"{picked_suggestion:?}\"."); self.clear_temporary_imports(); - let has_this = self.this_var().is_none(); + let has_this = self.this_var().is_some(); let preview_change = self.data.borrow().input.after_inserting_suggestion(&picked_suggestion, has_this)?; let preview_ast = self.ide.parser().parse_line_ast(preview_change.new_input).ok();