Skip to content

Commit 2642413

Browse files
committed
Merge branch 'release/2022.3.2' into main
2 parents c7dbf4f + e3b381c commit 2642413

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

docs/overview/changelog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ This release includes several new datasets in our STAC API. Each of these links
2424

2525
- [Deltares Floods](https://planetarycomputer.microsoft.com/dataset/deltares-floods)
2626
- [Deltares Water Availability](https://planetarycomputer.microsoft.com/dataset/deltares-water-availability)
27-
- [Microsoft Buildings Footprint](https://planetarycomputer.microsoft.com/dataset/ms-buildings)
27+
- [Microsoft Building Footprints](https://planetarycomputer.microsoft.com/dataset/ms-buildings)
2828
- [Kwando & Upper Zambezi Rivers HydroForecast](https://planetarycomputer.microsoft.com/dataset/kaza-hydroforecast)
2929

3030
## May 2022

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pc-datacatalog",
3-
"version": "2022.3.1",
3+
"version": "2022.3.2",
44
"private": true,
55
"proxy": "http://api:7071/",
66
"dependencies": {

src/pages/Explore/utils/hooks/useStacFilter.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,13 @@ export const makeFilterBody = (
1717
limit: number | undefined = undefined
1818
): IStacFilter => {
1919
const optimizedCql = optimizeCqlExpressions(cql);
20+
21+
// Combine base filters with any selected filters, removing any nulls
22+
const filterBody = [...baseFilter, ...optimizedCql].filter(Boolean);
23+
2024
return {
2125
"filter-lang": "cql2-json",
22-
filter: { op: "and", args: [...baseFilter, ...optimizedCql] },
26+
filter: { op: "and", args: filterBody },
2327
sortby: query.sortby || undefined,
2428
limit: limit,
2529
} as IStacFilter;

0 commit comments

Comments
 (0)