summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-10-13 12:47:51 +0200
committerJules Laplace <julescarbon@gmail.com>2020-10-13 12:47:51 +0200
commit71af3175571d95bbcd045c7fe62021079f570a2e (patch)
tree357c8c0063ccfe868e38b5bff460a1ae8188ed3c
parent075fc434cdbc794607d70df4efcc37d17337d96c (diff)
bump limit
-rw-r--r--app/client/modules/biggan/biggan.actions.js2
-rw-r--r--app/client/util/sort.js1
2 files changed, 2 insertions, 1 deletions
diff --git a/app/client/modules/biggan/biggan.actions.js b/app/client/modules/biggan/biggan.actions.js
index cc4211d..3f252a4 100644
--- a/app/client/modules/biggan/biggan.actions.js
+++ b/app/client/modules/biggan/biggan.actions.js
@@ -190,7 +190,7 @@ export const load_results = (id) => (dispatch) => {
export const load_encodings = () => dispatch => {
const module = bigganModule.name
util.allProgress([
- actions.folder.index({ module }),
+ actions.folder.index({ module, limit: 1000 }),
actions.file.index({
module,
datatype: 'image',
diff --git a/app/client/util/sort.js b/app/client/util/sort.js
index c5e3a37..fc6219e 100644
--- a/app/client/util/sort.js
+++ b/app/client/util/sort.js
@@ -29,6 +29,7 @@ export const orderByFn = (s='name asc') => {
case 'priority':
mapFn = a => [parseInt(a.priority) || parseInt(a.id) || 1000, a]
sortFn = numericSort[direction]
+ break
case 'name':
default:
mapFn = a => [a.name || "", a]