From 39973386c6a0d59a18fddf836282d4cc5d834670 Mon Sep 17 00:00:00 2001 From: rr- Date: Sun, 23 Oct 2016 19:47:59 +0200 Subject: [PATCH] client/posts: fix editing post safety Broken by 865c4f3b79eed5228bb968455c6ebef9bf56a6e8 --- client/js/controls/post_edit_sidebar_control.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/js/controls/post_edit_sidebar_control.js b/client/js/controls/post_edit_sidebar_control.js index 49576a1..7ba37d3 100644 --- a/client/js/controls/post_edit_sidebar_control.js +++ b/client/js/controls/post_edit_sidebar_control.js @@ -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() :