Skip to content

Commit

Permalink
[Bugfix] Fix zero number of rows in the query result (#488)
Browse files Browse the repository at this point in the history
  • Loading branch information
s7monk authored Jul 10, 2024
1 parent d049fd1 commit a106080
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions paimon-web-ui/src/store/job/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ export const useJobStore = defineStore({
return (key) => {
const initResultData = state.jobs[key]?.job?.resultData
const refreshedResultData = state.jobs[key]?.jobResultData?.resultData
if (initResultData)
if (initResultData && initResultData.length > 0)
return initResultData.length

if (refreshedResultData)
if (refreshedResultData && refreshedResultData.length > 0)
return refreshedResultData.length

return 0
Expand Down

0 comments on commit a106080

Please sign in to comment.