Skip to content

Commit ec5cb62

Browse files
committed
Fix TypeError when refreshing entry statuses
Fixes 'TypeError: can't access property starred, r is undefined' introduced in 00cf3d6 (#1512).
1 parent 20a46f9 commit ec5cb62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/js/templates/EntriesPage.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ class StateHolder extends React.Component {
729729
const newStatus = entryStatuses.find(
730730
(entryStatus) => entryStatus.id == id,
731731
);
732-
if (newStatus !== null) {
732+
if (newStatus) {
733733
this.starEntryInView(id, newStatus.starred);
734734
this.markEntryInView(id, newStatus.unread);
735735
}

0 commit comments

Comments
 (0)