diff options
| author | Hunternif <hunternif@gmail.com> | 2025-02-15 18:12:57 +0000 |
|---|---|---|
| committer | Hunternif <hunternif@gmail.com> | 2025-02-15 18:12:57 +0000 |
| commit | 6a5300502df8b4de9c8f269b444cd309f02b28ad (patch) | |
| tree | 0cf2ba56bce802c94ad324f9eda7a31d37a42e2e /client/js/controllers/pool_controller.js | |
| parent | 34e7c883808738871aed371948a3c9896a95905c (diff) | |
| parent | 376f687c386f65522b2f65e98b998b21af26ee29 (diff) | |
Merge branch 'master' into hunternif
Diffstat (limited to 'client/js/controllers/pool_controller.js')
| -rw-r--r-- | client/js/controllers/pool_controller.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/js/controllers/pool_controller.js b/client/js/controllers/pool_controller.js index ad0b956..f49827f 100644 --- a/client/js/controllers/pool_controller.js +++ b/client/js/controllers/pool_controller.js @@ -91,16 +91,16 @@ class PoolController { _evtUpdate(e) { this._view.clearMessages(); this._view.disableForm(); - if (e.detail.names !== undefined) { + if (e.detail.names !== undefined && e.detail.names !== null) { e.detail.pool.names = e.detail.names; } - if (e.detail.category !== undefined) { + if (e.detail.category !== undefined && e.detail.category !== null) { e.detail.pool.category = e.detail.category; } - if (e.detail.description !== undefined) { + if (e.detail.description !== undefined && e.detail.description !== null) { e.detail.pool.description = e.detail.description; } - if (e.detail.posts !== undefined) { + if (e.detail.posts !== undefined && e.detail.posts !== null) { e.detail.pool.posts.clear(); for (let postId of e.detail.posts) { e.detail.pool.posts.add( |