Skip to content

Commit

Permalink
fix(ui): fix refresh function
Browse files Browse the repository at this point in the history
  • Loading branch information
ncarlier committed May 16, 2019
1 parent 5c98c34 commit b1bb487
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ui/src/articles/ArticlesPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,10 @@ export const ArticlesPage = (props: AllProps) => {
emptyMessage={EmptyMessage({ mode })}
filter={a => a.status === req.status}
hasMore={d.articles.hasNext}
refetch={refetch}
refetch={() => refetch()}
fetchMoreArticles={fetchMoreArticles}
/>
{mode !== DisplayMode.history && <AddButton category={category} onSuccess={refetch} />}
{mode !== DisplayMode.history && <AddButton category={category} onSuccess={() => refetch()} />}
</>
),
Other: () => (
Expand All @@ -157,7 +157,7 @@ export const ArticlesPage = (props: AllProps) => {
title={title}
actions={
<ArticlesPageMenu
refresh={refetch}
refresh={() => refetch()}
markAllAsRead={req.status == 'unread' ? markAllAsRead : undefined}
mode={mode}
/>
Expand Down

0 comments on commit b1bb487

Please sign in to comment.