Skip to content

Commit

Permalink
fix: remove unused idx in KeyWords
Browse files Browse the repository at this point in the history
  • Loading branch information
ReidyT committed Dec 7, 2023
1 parent 0911825 commit eea2704
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion cypress/e2e/builder/enterSettings.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
ADD_KEYWORD_BUTTON_CY,
BUILDER_VIEW_CY,
CHATBOT_CONTAINER_CY,
CHATBOT_MODE_CY,
DELETE_KEYWORD_BUTTON_CY,
ENTER_DEFINITION_FIELD_CY,
ENTER_KEYWORD_FIELD_CY,
Expand Down
2 changes: 1 addition & 1 deletion src/components/common/settings/KeyWords.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ const KeyWords: FC<Prop> = ({ textStudents, chatbotEnabled }) => {
setDictionary(dictionary.filter((k) => k.word !== id));
};

const keyWordsItems = dictionary.map((k, idx) => (
const keyWordsItems = dictionary.map((k) => (
<ListItem
data-cy={KEYWORD_LIST_ITEM_CY}
key={k.word}
Expand Down

0 comments on commit eea2704

Please sign in to comment.