You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: adminforth/index.ts
+10-8Lines changed: 10 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -257,11 +257,12 @@ class AdminForth implements IAdminForth {
257
257
thrownewError(`Attempt to activate Plugin ${pluginInstance.constructor.name} second time for same resource, but plugin does not support it.
258
258
To support multiple plugin instance pre one resource, plugin should return unique string values for each installation from instanceUniqueRepresentation`);
259
259
}
260
-
if(pluginInstance.id){
261
-
if(this.pluginsById[pluginInstance.id]){
262
-
thrownewError(`Plugin with id "${pluginInstance.id}" already exists!`);
260
+
constpluginId=pluginInstance.pluginOptions?.id;
261
+
if(pluginId){
262
+
if(this.pluginsById[pluginId]){
263
+
thrownewError(`Plugin with id "${pluginId}" already exists!`);
0 commit comments