Skip to content

Commit

Permalink
Allow removing recent filters
Browse files Browse the repository at this point in the history
  • Loading branch information
kean committed Jan 22, 2023
1 parent 75f8ed2 commit 3ba828c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ final class ConsoleSearchSuggestionsService {
func clearRecentSearches() {
recentSearches = []
saveRecentSearches()

recentFilters = []
saveRecentFilters()
}

private func saveRecentSearches() {
Expand Down
2 changes: 1 addition & 1 deletion Sources/PulseUI/Mocks/MockTask.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ struct MockTask {
extension MockTask {
static let allEntities: [NetworkTaskEntity] = MockTask.allTasks.map(LoggerStore.preview.entity)

static var allTasks: [MockTask] = [.login, .profile, .repos, .octocat, .downloadNuke, .createAPI, .uploadPulseArchive, .patchRepo]
static var allTasks: [MockTask] = [.profile, .repos, .octocat, .downloadNuke, .createAPI, .uploadPulseArchive, .patchRepo, .login]

/// A successful request the demonstrates:
///
Expand Down

0 comments on commit 3ba828c

Please sign in to comment.