[Glitch] Remove conditional check for timeline data
Port 8e7c3973dc67835e0ce9c7073b9344ec19d3910a to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
5c47ed2d47
commit
d7bbe9c451
@ -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…
x
Reference in New Issue
Block a user