Skip to content

Commit

Permalink
updating attractant label to use short description over long description
Browse files Browse the repository at this point in the history
  • Loading branch information
marqueone-ps committed Nov 11, 2023
1 parent 0accac3 commit 115467c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions frontend/src/app/store/reducers/code-table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -413,10 +413,11 @@ export const selectAttractantCodeDropdown = (
codeTables: { attractant },
} = state;

const data = attractant.map(({ attractant, longDescription }) => {
const item: Option = { label: longDescription, value: attractant };
const data = attractant.map(({ attractant, shortDescription }) => {
const item: Option = { label: shortDescription, value: attractant };
return item;
});

return data;
};

Expand Down

0 comments on commit 115467c

Please sign in to comment.