This is an automated email from the ASF dual-hosted git repository. nicholasjiang pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/paimon-webui.git
commit 54f25079511daebab0166b4d812b47971e6b9289 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
