Skip to content

Commit

Permalink
fix sentry crash
Browse files Browse the repository at this point in the history
  • Loading branch information
ra3orblade committed Apr 26, 2024
1 parent 14e59e6 commit 404ecc9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/ts/component/menu/smile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -741,11 +741,15 @@ class MenuSmile extends React.Component<I.Menu, State> {
return;
};

this.coll += dir;

const rows = this.getItems();
const current = rows[this.row];

if (!current) {
return;
};

this.coll += dir;

// Arrow left
if (this.coll < 0) {
this.coll = LIMIT_SMILE_ROW - 1;
Expand Down

0 comments on commit 404ecc9

Please sign in to comment.