nicolium: fix fetching timeline when switching between two timelines of same type

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2026-03-07 19:51:19 +01:00
parent 0eda1d01c4
commit 9960c52fd3

View File

@ -31,7 +31,7 @@ const useTimeline = (
useEffect(() => {
if (!timeline.isPending || timeline.isFetching) return;
fetchInitial();
}, []);
}, [timelineId]);
const fetchInitial = useCallback(async () => {
timelineActions.setLoading(timelineId, true);