client/posts: fix editing post safety

Broken by 865c4f3b79
This commit is contained in:
rr- 2016-10-23 19:47:59 +02:00
parent 141c9fcdc9
commit 39973386c6

View file

@ -259,7 +259,7 @@ class PostEditSidebarControl extends events.EventTarget {
detail: {
post: this._post,
safety: this._safetyButtonNodes.legnth ?
safety: this._safetyButtonNodes.length ?
Array.from(this._safetyButtonNodes)
.filter(node => node.checked)[0]
.value.toLowerCase() :