mirror of
https://github.com/harness/drone.git
synced 2025-05-05 06:21:50 +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 { routes } = useAppContext()
|
||||||
const history = useHistory()
|
const history = useHistory()
|
||||||
const [searchTerm, setSearchTerm] = useState('')
|
const [searchTerm, setSearchTerm] = useState('')
|
||||||
const onSuccess = voidFn(noop)
|
const onSuccess = ()=>{
|
||||||
const openModal = useCreateTagModal({ repoMetadata, onSuccess })
|
refetch()
|
||||||
|
}
|
||||||
|
|
||||||
|
const openModal = useCreateTagModal({ repoMetadata, onSuccess,showSuccessMessage:true })
|
||||||
|
|
||||||
const { updateQueryParams } = useUpdateQueryParams()
|
const { updateQueryParams } = useUpdateQueryParams()
|
||||||
|
|
||||||
@ -108,7 +111,6 @@ export function RepositoryTagsContent({ repoMetadata }: Pick<GitInfoProps, 'repo
|
|||||||
message={getString('tagEmpty')}
|
message={getString('tagEmpty')}
|
||||||
onButtonClick={() => {
|
onButtonClick={() => {
|
||||||
openModal()
|
openModal()
|
||||||
refetch()
|
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user