From bdfcddb75d8b5b8a02d1ab5083a6c87a821f4d05 Mon Sep 17 00:00:00 2001 From: Norbert Schuler Date: Fri, 10 Jan 2025 18:23:44 +0100 Subject: [PATCH 1/2] add purpose filter with trees, conservation and restoration --- src/Layout/QueryParamContext.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Layout/QueryParamContext.tsx b/src/Layout/QueryParamContext.tsx index f15b3c6d..db3fa58c 100644 --- a/src/Layout/QueryParamContext.tsx +++ b/src/Layout/QueryParamContext.tsx @@ -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, From 2eb3d7592cc57fcfa3bbcad2bd28e722cb95f849 Mon Sep 17 00:00:00 2001 From: Norbert Schuler Date: Sat, 11 Jan 2025 10:05:48 +0100 Subject: [PATCH 2/2] fix GitHub action for linting --- .github/workflows/eslint.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml index 57d398ff..f2b18eaa 100644 --- a/.github/workflows/eslint.yml +++ b/.github/workflows/eslint.yml @@ -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