Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
angorayc committed Apr 28, 2020
1 parent d1c851e commit 4eca630
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ export interface AllTimelinesVariables {
pageInfo: PageInfoTimeline;
search: string;
sort: SortTimeline;
timelines: OpenTimelineResult[];
totalCount: number;
}

export const ALL_TIMELINE_QUERY_ID = 'FETCH_ALL_TIMELINES';
Expand Down Expand Up @@ -104,9 +106,9 @@ export const useGetAllTimeline = (): AllTimelinesArgs => {
if (apolloClient != null) {
setAllTimelines({
...allTimelines,
loading: true,
timelines: timelines ?? allTimelines.timelines,
totalCount: totalCount ?? allTimelines.totalCount,
loading: true,
});
const variables: GetAllTimeline.Variables = {
onlyUserFavorite,
Expand Down

0 comments on commit 4eca630

Please sign in to comment.