mirror of
https://github.com/mastodon/mastodon.git
synced 2026-03-21 18:05:23 -05:00
Remove conditional check for timeline data (#37922)
This commit is contained in:
parent
39ff07bc89
commit
8e7c3973dc
|
|
@ -86,11 +86,9 @@ const InnerTimeline: FC<{ accountId: string; multiColumn: boolean }> = ({
|
||||||
const dispatch = useAppDispatch();
|
const dispatch = useAppDispatch();
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (accountId) {
|
if (accountId) {
|
||||||
if (!timeline) {
|
dispatch(expandTimelineByKey({ key }));
|
||||||
dispatch(expandTimelineByKey({ key }));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}, [accountId, dispatch, key, timeline]);
|
}, [accountId, dispatch, key]);
|
||||||
|
|
||||||
const handleLoadMore = useCallback(
|
const handleLoadMore = useCallback(
|
||||||
(maxId: number) => {
|
(maxId: number) => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user