File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/plugin-nested-docs/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -22,14 +22,14 @@ export const nestedDocsPlugin =
2222 if ( pluginConfig . collections . indexOf ( collection . slug ) > - 1 ) {
2323 const fields = [ ...( collection ?. fields || [ ] ) ]
2424
25- const currentFlattenedField = flattenAllFields ( { fields : collection . fields } )
25+ const flattenedFields = flattenAllFields ( { fields : collection . fields } )
2626
27- const existingBreadcrumbField = currentFlattenedField . find (
27+ const existingBreadcrumbField = flattenedFields . find (
2828 ( field ) =>
2929 'name' in field && field . name === ( pluginConfig ?. breadcrumbsFieldSlug || 'breadcrumbs' ) ,
3030 )
3131
32- const existingParentField = currentFlattenedField . find (
32+ const existingParentField = flattenedFields . find (
3333 ( field ) => 'name' in field && field . name === ( pluginConfig ?. parentFieldSlug || 'parent' ) ,
3434 ) as SingleRelationshipField
3535
You can’t perform that action at this time.
0 commit comments