Skip to content

Commit 0ffddf7

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

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
@@ -730,7 +730,7 @@ class StateHolder extends React.Component {
730730
const newStatus = entryStatuses.find(
731731
(entryStatus) => entryStatus.id == id,
732732
);
733-
if (newStatus !== null) {
733+
if (newStatus) {
734734
this.starEntryInView(id, newStatus.starred);
735735
this.markEntryInView(id, newStatus.unread);
736736
}

0 commit comments

Comments
 (0)