summaryrefslogtreecommitdiff
path: root/client/js/models
diff options
context:
space:
mode:
authorEva <evauwu@riseup.net>2023-05-23 18:26:02 +0200
committerEva <evauwu@riseup.net>2024-03-28 13:31:48 +0100
commitb72e81850dcb898cb53dbe4ff2788acabe5472ba (patch)
tree52862b0539f3df7d2988d79c159e7d2c0323275c /client/js/models
parent782f0690318d21e9e09ac88984afc59a1812b888 (diff)
client: add null checks
Diffstat (limited to 'client/js/models')
-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) {