add form items to LibraryOptions

This commit is contained in:
axolotle
2021-03-11 15:47:38 +01:00
parent 5e0c6a12a3
commit 6c5675ad79
3 changed files with 82 additions and 4 deletions
+2 -1
View File
@@ -38,7 +38,8 @@ export default [
return { mode, texts }
},
options: ({ query }) => ({
show: !('texts' in query && query.texts.length)
show: !('texts' in query && query.texts.length),
mode: query.mode || 'tree-map'
})
}
},