summaryrefslogtreecommitdiff
path: root/client/index.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2019-03-08 17:19:36 +0100
committerJules Laplace <julescarbon@gmail.com>2019-03-08 17:19:36 +0100
commit1dcb61dab45b4891b1b737877d3d95e1211f33b3 (patch)
treea13ee4541e0a55dcbdfe5701b79ddd8da6ed8ca9 /client/index.js
parent6ddf79260f153aa52d2b444772c03cae502f4d35 (diff)
sortable dataset list
Diffstat (limited to 'client/index.js')
-rw-r--r--client/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/index.js b/client/index.js
index 9db88f14..1e4e2eb8 100644
--- a/client/index.js
+++ b/client/index.js
@@ -80,7 +80,7 @@ function runApplets() {
url = null
}
}
- if (!dataset && !url) {
+ if (('datasets' in payload) && !dataset && !url) {
const path = window.location.pathname.split('/').filter(s => !!s)
if (path.length) {
dataset = path.pop()