From 1212fcd94c8d21732d277dcc6948abf205fa6697 Mon Sep 17 00:00:00 2001 From: Vijay Rathore Date: Tue, 27 Dec 2022 18:32:07 +0530 Subject: [PATCH] fix get filter by id API --- packages/nocodb/src/lib/meta/api/filterApis.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nocodb/src/lib/meta/api/filterApis.ts b/packages/nocodb/src/lib/meta/api/filterApis.ts index 98b586663b..0f3393229f 100644 --- a/packages/nocodb/src/lib/meta/api/filterApis.ts +++ b/packages/nocodb/src/lib/meta/api/filterApis.ts @@ -17,7 +17,7 @@ import { metaApiMetrics } from '../helpers/apiMetrics'; // @ts-ignore export async function filterGet(req: Request, res: Response, next) { try { - const filter = await Filter.getFilterObject({ viewId: req.params.viewId }); + const filter = await Filter.get(req.params.filterId); res.json(filter); } catch (e) {