Skip to content

Commit

Permalink
Merge pull request #20711 from Yoast/20421-breadcrumbs-field-is-suppl…
Browse files Browse the repository at this point in the history
…ied-wrong-type

20421 breadcrumbs field is supplied wrong type
  • Loading branch information
igorschoester authored Oct 11, 2023
2 parents fa4b248 + 428574d commit a6e3c98
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions packages/js/src/settings/routes/breadcrumbs.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,8 @@ const Breadcrumbs = () => {
as={ SelectField }
name={ `wpseo_titles.post_types-${ postTypeName }-maintax` }
id={ `input-wpseo_titles-post_types-${ postTypeName }-maintax` }
label={ <>
{ postType.label }
<Code className="yst-ml-2">{ postTypeName }</Code>
</> }
label={ postType.label }
labelSuffix={ <Code className="yst-ml-2">{ postTypeName }</Code> }
options={ postType.options }
className="yst-max-w-sm"
/> ) }
Expand All @@ -131,12 +129,10 @@ const Breadcrumbs = () => {
as={ SelectField }
name={ `wpseo_titles.taxonomy-${ taxonomy.name }-ptparent` }
id={ `input-wpseo_titles-taxonomy-${ taxonomy.name }-ptparent` }
label={ <>
{ taxonomy.label }
<Code className="yst-ml-2">{ taxonomy.name }</Code>
</> }
label={ taxonomy.label }
options={ taxonomy.options }
className="yst-max-w-sm"
labelSuffix={ <Code className="yst-ml-2">{ taxonomy.name }</Code> }
/>
) ) }
</FieldsetLayout>
Expand Down

0 comments on commit a6e3c98

Please sign in to comment.