Skip to content

Commit

Permalink
fix: optional response data for check new, fixed #195
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <[email protected]>
  • Loading branch information
Innei committed Aug 3, 2024
1 parent 8d7e507 commit 2c650b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderer/src/modules/entry-column/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ export const useEntriesByView = ({ onReset }: { onReset?: () => void }) => {
},
)
const hasUpdate = useMemo(
() => !!(fetchedTime && hasNewQuery?.data?.data.has_new),
[hasNewQuery?.data?.data.has_new, fetchedTime],
() => !!(fetchedTime && hasNewQuery?.data?.data?.has_new),
[hasNewQuery?.data?.data?.has_new, fetchedTime],
)

useEffect(() => {
Expand Down

0 comments on commit 2c650b0

Please sign in to comment.