This is an automated email from the ASF dual-hosted git repository. nicholasjiang pushed a commit to branch branch-0.1 in repository https://gitbox.apache.org/repos/asf/paimon-webui.git
commit ba651e634569e4ccc5de12f176040a9e6f4fbd11 Author: s7monk <[email protected]> AuthorDate: Wed Jul 10 19:19:25 2024 +0800 [Bugfix] Fix zero number of rows in the query result (#488) --- paimon-web-ui/src/store/job/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paimon-web-ui/src/store/job/index.ts b/paimon-web-ui/src/store/job/index.ts index 87587371..77ad51a1 100644 --- a/paimon-web-ui/src/store/job/index.ts +++ b/paimon-web-ui/src/store/job/index.ts @@ -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
