Browse Source

Merge pull request #4320 from finn-auto/error-filter-update-not-allowed

add project Id with filterparent requests
refactor/ui-updates
Pranav C 2 years ago committed by GitHub
parent
commit
3ff0904059
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      packages/nocodb/src/lib/meta/helpers/extractProjectIdAndAuthenticate.ts

3
packages/nocodb/src/lib/meta/helpers/extractProjectIdAndAuthenticate.ts

@ -75,6 +75,9 @@ export default async (req, res, next) => {
} else if (params.filterId) {
const filter = await Filter.get(params.filterId);
req.ncProjectId = filter?.project_id;
} else if (params.filterParentId) {
const filter = await Filter.get(params.filterParentId);
req.ncProjectId = filter?.project_id;
} else if (params.sortId) {
const sort = await Sort.get(params.sortId);
req.ncProjectId = sort?.project_id;

Loading…
Cancel
Save