Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #90 from DealMachine/main
Browse files Browse the repository at this point in the history
Fix event persist undefined crash.
  • Loading branch information
peterp authored Oct 28, 2021
2 parents a2ae6fa + d1a9ed2 commit 2668d58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tags/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class Tags extends React.Component {
index,
deleteTagOnPress,
onPress: event => {
event.persist();
event?.persist();
if (deleteTagOnPress && !readonly) {
this.setState(state =>
({
Expand Down Expand Up @@ -160,4 +160,4 @@ Tags.propTypes = {
};

export { Tags };
export default Tags;
export default Tags;

0 comments on commit 2668d58

Please sign in to comment.