Skip to content

Commit

Permalink
Fix exception in traces panel when unchecking all category filters
Browse files Browse the repository at this point in the history
Fixes #310
  • Loading branch information
superstructor committed Jun 22, 2021
1 parent 5975b51 commit 43038cf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Change Log
All notable changes to this project will be documented in this file. This change log follows the conventions of [keepachangelog.com](http://keepachangelog.com/).

## 1.1.6 (2021-06-22)

### Fixed

- Fix exception in traces panel when unchecking all category filters. Fixes [#310](https://github.com/day8/re-frame-10x/issues/310).

## 1.1.5 (2021-06-22)

### Fixed
Expand Down
4 changes: 1 addition & 3 deletions src/day8/re_frame_10x/panels/traces/subs.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,7 @@
:<- [::filtered-by-cached-subscriptions]
:<- [::categories]
(fn [[traces categories] _]
(if-not (seq categories)
traces
(filter (fn [trace] (when (contains? categories (:op-type trace)) trace)) traces))))
(filter (fn [trace] (when (contains? categories (:op-type trace)) trace)) traces)))

(defn query->fn [query]
(if (= :contains (:type query))
Expand Down

0 comments on commit 43038cf

Please sign in to comment.