aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-09-18 23:04:50 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2022-09-18 23:04:50 +0200
commiteef82a95ba0e3e83bf1d1464febe4f8fc793ec80 (patch)
treee044c29b22b72d0f5f3c9a2b3348b35fe5c44b49
parentAdd uniq to hnh/util. (diff)
downloadcalp-eef82a95ba0e3e83bf1d1464febe4f8fc793ec80.tar.gz
calp-eef82a95ba0e3e83bf1d1464febe4f8fc793ec80.tar.xz
Repair user-additions salar.
-rw-r--r--static/user/user-additions.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/static/user/user-additions.js b/static/user/user-additions.js
index bfc0391d..909f85f2 100644
--- a/static/user/user-additions.js
+++ b/static/user/user-additions.js
@@ -68,7 +68,7 @@ window.formatters.set('description', async (el, ev, d) => {
window.salar = new Promise((resolve, reject) =>
fetch('/static/user/salar.json')
- .then(resp => { if (! resp.ok) reject("404"); else resp.json() })
+ .then(resp => ! resp.ok ? reject("404") : resp.json())
.then(d => resolve(d))
.catch(err => reject(err))
)