Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
warren830 committed Dec 27, 2024
1 parent fd5bbdd commit 6b4702d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions web/app/components/workflow/header/version-history-modal.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use client'
import React, { useState } from 'react'
import { useTranslation } from 'react-i18next'
import useSWR from 'swr'
import { useWorkflowRun } from '../hooks'
import VersionHistoryItem from './version-history-item'
Expand All @@ -16,7 +17,7 @@ const VersionHistoryModal = () => {
const [page, setPage] = useState(1)
const { handleRestoreFromPublishedWorkflow } = useWorkflowRun()
const appDetail = useAppStore.getState().appDetail

const { t } = useTranslation()
const {
data: versionHistory,
isLoading,
Expand Down Expand Up @@ -69,13 +70,13 @@ const VersionHistoryModal = () => {
className='text-sm'
onClick={handleNextPage}
>
workflow.common.loadMore
{t('workflow.common.loadMore')}
</Button>
</div>
)}
{!isLoading && !versionHistory?.items?.length && (
<div className='flex items-center justify-center h-10 text-gray-500'>
workflow.common.noHistory
{t('workflow.common.noHistory')}
</div>
)}
</>
Expand Down

0 comments on commit 6b4702d

Please # to comment.