Browse Source

feat: make backward compatible and all title to filter

pull/9894/head
Pranav C 18 hours ago
parent
commit
4e6ae4f55f
  1. 7
      packages/nocodb/src/models/Plugin.ts

7
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;
}
/**

Loading…
Cancel
Save