@openneuro/app 4.24.0 → 4.24.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openneuro/app",
|
|
3
|
-
"version": "4.24.
|
|
3
|
+
"version": "4.24.1",
|
|
4
4
|
"description": "React JS web frontend for the OpenNeuro platform.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "public/client.js",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"@emotion/react": "11.11.1",
|
|
21
21
|
"@emotion/styled": "11.11.0",
|
|
22
22
|
"@niivue/niivue": "0.34.0",
|
|
23
|
-
"@openneuro/client": "^4.24.
|
|
24
|
-
"@openneuro/components": "^4.24.
|
|
23
|
+
"@openneuro/client": "^4.24.1",
|
|
24
|
+
"@openneuro/components": "^4.24.1",
|
|
25
25
|
"@tanstack/react-table": "^8.9.3",
|
|
26
26
|
"bids-validator": "1.14.6",
|
|
27
27
|
"bytes": "^3.0.0",
|
|
@@ -74,5 +74,5 @@
|
|
|
74
74
|
"publishConfig": {
|
|
75
75
|
"access": "public"
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "09d29acb132ab0aedf0c376ec6b5e7cbca175b74"
|
|
78
78
|
}
|
|
@@ -66,6 +66,7 @@ export const removeFilterItem = (setSearchParams) => (param, value) => {
|
|
|
66
66
|
case "diagnosis_selected":
|
|
67
67
|
case "section_selected":
|
|
68
68
|
case "species_selected":
|
|
69
|
+
case "bidsDatasetType_selected":
|
|
69
70
|
updatedParams[param] = initialSearchParams[param]
|
|
70
71
|
setSearchParams((prevState) => ({
|
|
71
72
|
...prevState,
|
|
@@ -149,6 +149,7 @@ export const useSearchResults = () => {
|
|
|
149
149
|
tracerNames,
|
|
150
150
|
tracerRadionuclides,
|
|
151
151
|
sortBy_selected,
|
|
152
|
+
bidsDatasetType_selected,
|
|
152
153
|
} = searchParams
|
|
153
154
|
|
|
154
155
|
const boolQuery = new BoolQuery()
|
|
@@ -227,6 +228,15 @@ export const useSearchResults = () => {
|
|
|
227
228
|
matchQuery("metadata.dxStatus", diagnosis_selected),
|
|
228
229
|
)
|
|
229
230
|
}
|
|
231
|
+
if (bidsDatasetType_selected) {
|
|
232
|
+
boolQuery.addClause(
|
|
233
|
+
"filter",
|
|
234
|
+
matchQuery(
|
|
235
|
+
"latestSnapshot.description.DatasetType",
|
|
236
|
+
bidsDatasetType_selected,
|
|
237
|
+
),
|
|
238
|
+
)
|
|
239
|
+
}
|
|
230
240
|
if (tasks.length) {
|
|
231
241
|
boolQuery.addClause(
|
|
232
242
|
"must",
|