Browse Source

fix(nocodb): throw error when plugin data is not found

pull/5349/head
Wing-Kam Wong 2 years ago
parent
commit
13088c173d
  1. 4
      packages/nocodb/src/lib/meta/helpers/NcPluginMgrv2.ts

4
packages/nocodb/src/lib/meta/helpers/NcPluginMgrv2.ts

@ -181,7 +181,7 @@ class NcPluginMgrv2 {
active: true, active: true,
}); });
if (!pluginData) return null; if (!pluginData) throw new Error('Plugin not configured / active');
const pluginConfig = defaultPlugins.find( const pluginConfig = defaultPlugins.find(
(c) => c.title === pluginData.title && c.category === PluginCategory.EMAIL (c) => c.title === pluginData.title && c.category === PluginCategory.EMAIL
@ -205,7 +205,7 @@ class NcPluginMgrv2 {
active: true, active: true,
}); });
if (!pluginData) throw new Error('Plugin not configured/active'); if (!pluginData) throw new Error('Plugin not configured / active');
const pluginConfig = defaultPlugins.find( const pluginConfig = defaultPlugins.find(
(c) => c.title === pluginData.title (c) => c.title === pluginData.title

Loading…
Cancel
Save