Skip to content

Commit

Permalink
Merge pull request #485 from Plant-for-the-Planet-org/feature/add_fil…
Browse files Browse the repository at this point in the history
…ter_to_projects_endpoint

add purpose filter with trees, conservation and restoration
  • Loading branch information
mariahosfeld authored Jan 13, 2025
2 parents b35826d + 2eb3d75 commit b749600
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,16 @@ jobs:
name: 'ESLint on Ubuntu'
runs-on: ubuntu-latest # Can be self-hosted runner also
steps:

- name: 'Checkout the repository'
uses: actions/checkout@v2

- name: Upgrade npm to latest version
run: sudo npm i -g npm@latest
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'

- name: 'Install Node Modules'
run: npm install
run: npm install --legacy-peer-deps

- name: 'Running ESLint only showing errors'
run: npm run lint:errors
2 changes: 1 addition & 1 deletion src/Layout/QueryParamContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ const QueryParamProvider: FC = ({ children }) => {
async function loadselectedProjects() {
try {
const requestParams = {
url: `/app/projects?_scope=map`,
url: `/app/projects?_scope=map&filter[purpose]=trees,restoration,conservation`,
setshowErrorCard,
tenant,
locale: i18n.language,
Expand Down

0 comments on commit b749600

Please sign in to comment.