Skip to content

Commit d8fdbf2

Browse files
committed
fix: exclude plugins from cloned foreign resource
1 parent c0aaf21 commit d8fdbf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export default class ForeignInlineListPlugin extends AdminForthPlugin {
6969

7070
// get resource with foreignResourceId
7171
this.foreignResource = adminforth.config.resources.find((resource) => resource.resourceId === this.options.foreignResourceId);
72-
this.copyOfForeignResource = clone({ ...this.foreignResource });
72+
this.copyOfForeignResource = clone({ ...this.foreignResource, plugins: undefined });
7373
const idOfNewCopy = `${this.foreignResource.resourceId}_inline_list_copy_${this.pluginInstanceId}`;
7474
this.copyOfForeignResource.resourceId = idOfNewCopy;
7575
adminforth.config.resources.push(this.copyOfForeignResource);

0 commit comments

Comments
 (0)