Skip to content

Commit

Permalink
removed testing materials
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrogenous committed Apr 25, 2024
1 parent 53ec258 commit 5ce886d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions components/lib/autocomplete/AutoComplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,11 +250,9 @@ export const AutoComplete = React.memo(
};

const removeItem = (event, index) => {

const removedValue = props.value[index];
const newValue = props.value.filter((_, i) => index !== i);

console.log(removedValue, newValue);
updateModel(event, newValue);

if (props.onUnselect) {
Expand Down

0 comments on commit 5ce886d

Please sign in to comment.