diff options
| author | Eva <evauwu@riseup.net> | 2023-05-23 18:26:02 +0200 |
|---|---|---|
| committer | Eva <evauwu@riseup.net> | 2024-03-28 13:31:48 +0100 |
| commit | b72e81850dcb898cb53dbe4ff2788acabe5472ba (patch) | |
| tree | 52862b0539f3df7d2988d79c159e7d2c0323275c /client/js/models | |
| parent | 782f0690318d21e9e09ac88984afc59a1812b888 (diff) | |
client: add null checks
Diffstat (limited to 'client/js/models')
| -rw-r--r-- | client/js/models/post.js | 2 |
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) { |