git ssb

0+

alanz / patchwork



forked from Matt McKegg / patchwork

Commit 800802a8e83569e3d533238eba9e7df2f4d77a6a

fix crash when rendering empty post

Matt McKegg committed on 12/11/2017, 12:54:27 AM
Parent: 7b40e72587b4ad66d057d1dd84a907c403582692

Files changed

lib/expander-hook.jschanged
lib/expander-hook.jsView
@@ -18,9 +18,9 @@
1818
1919 function handleEvent (ev) {
2020 var { needsExpand, element } = this
2121 if (!needsExpand()) {
22- if (element.firstElementChild.clientHeight > element.clientHeight) {
22+ if (element.firstElementChild && element.firstElementChild.clientHeight > element.clientHeight) {
2323 needsExpand.set(true)
2424 }
2525 }
2626 }

Built with git-ssb-web