Skip to content

Commit

Permalink
Fix exception in ctrl-h (toggle show 10x).
Browse files Browse the repository at this point in the history
Fixes [#306](#306).

Manifested as 'Uncaught Error: Assert failed: (number? n)'
  • Loading branch information
superstructor committed Jun 22, 2021
1 parent 0fdf664 commit 5975b51
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
# 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.5 (2021-06-22)

### Fixed

- Fix exception in ctrl-h (toggle show 10x). Fixes [#306](https://github.com/day8/re-frame-10x/issues/306).

## 1.1.4 (2021-06-20)

### Fixed

- Guard against 'Index out of bounds' exception in timing panel

## 1.1.3 (2021-06-08)

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion src/day8/re_frame_10x/panels/settings/events.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@
[(rf/path [:settings])
(local-storage/after "using-trace?" :using-trace?)
(local-storage/after "show-panel" :show-panel?)]
(fn [settings _]
(fn [{settings :db} _]
(let [now-showing? (not (get settings :show-panel?))
external-panel? (get settings :external-window?)
using-trace? (or external-panel? now-showing?)]
Expand Down

0 comments on commit 5975b51

Please sign in to comment.