Skip to content

Commit

Permalink
- bugfix in handling :kindly/options at item preparation
Browse files Browse the repository at this point in the history
  • Loading branch information
daslu committed Sep 10, 2024
1 parent 1d33e5a commit d86b0a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ All notable changes to this project will be documented in this file. This change
- Class or style from kindly/options (#139)
- updated Kindly version
- rely on kindly/*options* and kindly-advice for options (PR #148)
- bugfix in handling `:kindly/options` at item preparation

## [2-beta15] - 2024-07-27
- introducing code-and-value and horizontal layout - WIP (PR #127)
Expand Down
6 changes: 3 additions & 3 deletions src/scicloj/clay/v2/prepare.clj
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@
:keys [value]}]
(-> context
(dissoc :form)
(update :kindly/options :dissoc :element/max-height)
(update :kindly/options dissoc :element/max-height)
(assoc :value (-> value
meta
:test
Expand All @@ -315,7 +315,7 @@
(mapcat (fn [v]
(let [items (-> context
(dissoc :form)
(update :kindly/options :dissoc :element/max-height)
(update :kindly/options dissoc :element/max-height)
(assoc :value v)
prepare-or-pprint)]
(swap! *deps concat (mapcat :deps items))
Expand Down Expand Up @@ -364,7 +364,7 @@
(mapcat (fn [subvalue]
(-> context
(dissoc :form)
(update :kindly/options :dissoc :element/max-height)
(update :kindly/options dissoc :element/max-height)
(assoc :value subvalue)
prepare-or-pprint))))]
(if (->> prepared-parts
Expand Down

0 comments on commit d86b0a0

Please sign in to comment.