Skip to content

Commit 53b011a

Browse files
committed
Copy existing admin component and views into the extended Payload collection config. Fixes #6
1 parent f062378 commit 53b011a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ const extendCollectionConfig = (
5555
defaultLimit: collection.admin?.pagination?.defaultLimit ?? 100
5656
},
5757
components: {
58+
...collection?.admin?.components || {},
5859
views: {
60+
...collection?.admin?.components?.views || {},
5961
List: WorkflowView(collectionPluginConfig)
6062
}
6163
}

0 commit comments

Comments
 (0)