mirror of
https://github.com/harness/drone.git
synced 2025-05-05 02:02:14 +08:00
fix: [code-411]: after creating new tag, page is empty
This commit is contained in:
parent
95fc5a238e
commit
ae38a54f9b
@ -25,8 +25,11 @@ export function RepositoryTagsContent({ repoMetadata }: Pick<GitInfoProps, 'repo
|
||||
const { routes } = useAppContext()
|
||||
const history = useHistory()
|
||||
const [searchTerm, setSearchTerm] = useState('')
|
||||
const onSuccess = voidFn(noop)
|
||||
const openModal = useCreateTagModal({ repoMetadata, onSuccess })
|
||||
const onSuccess = ()=>{
|
||||
refetch()
|
||||
}
|
||||
|
||||
const openModal = useCreateTagModal({ repoMetadata, onSuccess,showSuccessMessage:true })
|
||||
|
||||
const { updateQueryParams } = useUpdateQueryParams()
|
||||
|
||||
@ -108,7 +111,6 @@ export function RepositoryTagsContent({ repoMetadata }: Pick<GitInfoProps, 'repo
|
||||
message={getString('tagEmpty')}
|
||||
onButtonClick={() => {
|
||||
openModal()
|
||||
refetch()
|
||||
}}
|
||||
/>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user