@@ -274,6 +274,16 @@ final class QueryViewModel {
274 return value
274 return value
277+ func clearResults() {
282+ selectedLogEntry = nil
284+ resultsTruncated = false
277 func setDefaultQuery(stream: String, previousStream: String? = nil) {
287 func setDefaultQuery(stream: String, previousStream: String? = nil) {
278 // Replace the query if it's empty or still matches the auto-generated
288 // Replace the query if it's empty or still matches the auto-generated
279 // default for the previous stream. If the user edited the SQL, keep it.
289 // default for the previous stream. If the user edited the SQL, keep it.