Skip to content

Commit b57c4d4

Browse files
committed
fix update-attr
1 parent b671cf0 commit b57c4d4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/renderer/element/handlers.cljs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -346,9 +346,9 @@
346346
(utils.element/supported-attr? (entity db id) k)
347347
(update-el id attr.hierarchy/update-attr k f arg)))
348348
([db id k f arg & more]
349-
(cond-> db
350-
(utils.element/supported-attr? (entity db id) k)
351-
(apply update-el id attr.hierarchy/update-attr k f arg more))))
349+
(if (utils.element/supported-attr? (entity db id) k)
350+
(apply update-el db id attr.hierarchy/update-attr k f arg more)
351+
db)))
352352

353353
(m/=> deselect [:function
354354
[:-> App App]

0 commit comments

Comments
 (0)