summaryrefslogtreecommitdiff
path: root/client/js/models/post.js
diff options
context:
space:
mode:
authorNeo <50623835+neobooru@users.noreply.github.com>2024-04-27 21:23:16 +0200
committerGitHub <noreply@github.com>2024-04-27 21:23:16 +0200
commitd102578b544226207fac055d0c6ed1a45a12e471 (patch)
tree035a9b74017e8db2c52b924cea0d90f470d96496 /client/js/models/post.js
parent6edb25d87b24db087fdf6496552a31979a7c2ec8 (diff)
parentb72e81850dcb898cb53dbe4ff2788acabe5472ba (diff)
Merge pull request #647 from po5/null-checks
client: add null checks
Diffstat (limited to 'client/js/models/post.js')
-rw-r--r--client/js/models/post.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/js/models/post.js b/client/js/models/post.js
index 2fb3d34..01f81bf 100644
--- a/client/js/models/post.js
+++ b/client/js/models/post.js
@@ -271,7 +271,7 @@ class Post extends events.EventTarget {
if (this._newContent) {
files.content = this._newContent;
}
- if (this._newThumbnail !== undefined) {
+ if (this._newThumbnail !== undefined && this._newThumbnail !== null) {
files.thumbnail = this._newThumbnail;
}
if (this._source !== this._orig._source) {