Skip to content

Commit

Permalink
fix(@dpc-sdp/ripple-tide-search): fix search listing taxonomy dropdow…
Browse files Browse the repository at this point in the history
…n error on keyboard navigation
  • Loading branch information
David Featherston committed Apr 8, 2024
1 parent 24beb92 commit c39c801
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default {
multiple: true,
options: [
{
id: 1,
id: '1',
label: 'Option 1',
value: 'Option 1',
parent: null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default {
multiple: true,
options: [
{
id: 1,
id: '1',
label: 'Option 1',
value: 'Option 1',
parent: null
Expand All @@ -62,7 +62,7 @@ export default {
multiple: true,
options: [
{
id: 1,
id: '1',
label: 'Option 1',
value: 'Option 1',
parent: null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default {
multiple: true,
options: [
{
id: 1,
id: '1',
label: 'Option 1',
value: 'Option 1',
parent: null
Expand Down
6 changes: 4 additions & 2 deletions packages/ripple-tide-search/mapping/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ export const processConfig = async (config, tidePageApi) => {
.filter((tax) => tax.status === true)
.sort((a, b) => a.weight - b.weight)
.map((item) => ({
id: item.drupal_internal__tid,
id: item.drupal_internal__tid.toString(),
label: item.name,
value: item.name,
parent: item?.parent?.[0]?.meta.drupal_internal__target_id || null
parent:
item?.parent?.[0]?.meta?.drupal_internal__target_id?.toString() ||
null
}))

if (activeTaxonomies && activeTaxonomies.length > 0) {
Expand Down

0 comments on commit c39c801

Please sign in to comment.