From b72e81850dcb898cb53dbe4ff2788acabe5472ba Mon Sep 17 00:00:00 2001 From: Eva Date: Tue, 23 May 2023 18:26:02 +0200 Subject: client: add null checks --- client/js/models/post.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client/js/models/post.js') 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) { -- cgit v1.3