summaryrefslogtreecommitdiff
path: root/client/js/controls/post_edit_sidebar_control.js
diff options
context:
space:
mode:
authorHunternif <hunternif@gmail.com>2025-02-15 18:12:57 +0000
committerHunternif <hunternif@gmail.com>2025-02-15 18:12:57 +0000
commit6a5300502df8b4de9c8f269b444cd309f02b28ad (patch)
tree0cf2ba56bce802c94ad324f9eda7a31d37a42e2e /client/js/controls/post_edit_sidebar_control.js
parent34e7c883808738871aed371948a3c9896a95905c (diff)
parent376f687c386f65522b2f65e98b998b21af26ee29 (diff)
Merge branch 'master' into hunternif
Diffstat (limited to 'client/js/controls/post_edit_sidebar_control.js')
-rw-r--r--client/js/controls/post_edit_sidebar_control.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/client/js/controls/post_edit_sidebar_control.js b/client/js/controls/post_edit_sidebar_control.js
index 053a317..a673495 100644
--- a/client/js/controls/post_edit_sidebar_control.js
+++ b/client/js/controls/post_edit_sidebar_control.js
@@ -221,9 +221,8 @@ class PostEditSidebarControl extends events.EventTarget {
);
if (this._formNode) {
- const inputNodes = this._formNode.querySelectorAll(
- "input, textarea"
- );
+ const inputNodes =
+ this._formNode.querySelectorAll("input, textarea");
for (let node of inputNodes) {
node.addEventListener("change", (e) =>
this.dispatchEvent(new CustomEvent("change"))
@@ -476,7 +475,7 @@ class PostEditSidebarControl extends events.EventTarget {
: undefined,
thumbnail:
- this._newPostThumbnail !== undefined
+ this._newPostThumbnail !== undefined && this._newPostThumbnail !== null
? this._newPostThumbnail
: undefined,