From 4e6ae4f55f544895fc6313c6762d4bf21d2d96c7 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Thu, 28 Nov 2024 06:05:25 +0000 Subject: [PATCH] feat: make backward compatible and all title to filter --- packages/nocodb/src/models/Plugin.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/nocodb/src/models/Plugin.ts b/packages/nocodb/src/models/Plugin.ts index 5ea2120787..ccf11c4bea 100644 --- a/packages/nocodb/src/models/Plugin.ts +++ b/packages/nocodb/src/models/Plugin.ts @@ -93,8 +93,11 @@ export default class Plugin implements PluginType { return this.get(pluginId); } - public static async isPluginActive(id: string) { - return !!(await this.getPlugin(id))?.active; + public static async isPluginActive(id: string, ncMeta = Noco.ncMeta) { + return !!( + (await this.getPlugin(id, ncMeta)) || + (await this.getPluginByTitle(id, ncMeta)) + )?.active; } /**