Skip to content

Commit

Permalink
Fix 'show last revision' toggle
Browse files Browse the repository at this point in the history
I overlooked this change when I reimplemented the articleDetails to be completely client-side.
  • Loading branch information
ragesoss committed Dec 30, 2024
1 parent 6f8a743 commit a01b22c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const ArticleViewer = ({ showOnMount, users, showArticleFinder, showButtonLabel,
const [unhighlightedContributors, setUnhighlightedContributors] = useState([]);
const [revisionId, setRevisionId] = useState(null);
const [pendingRequest, setPendingRequest] = useState(false);
const lastRevisionId = useSelector(state => state.articleDetails[article.id]?.last_revision?.mw_rev_id);
const lastRevisionId = useSelector(state => state.articleDetails[article.id]?.last_revision?.revid);

const dispatch = useDispatch();
const ref = useRef();
Expand Down

0 comments on commit a01b22c

Please sign in to comment.