Merge branch 'code-411' of _OKE5H2PQKOUfzFFDuD4FA/default/CODE/gitness (#108)

This commit is contained in:
Calvin Lee 2023-05-31 21:56:12 +00:00 committed by Harness
commit 42efe1cebd

View File

@ -25,9 +25,7 @@ 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 openModal = useCreateTagModal({ repoMetadata, onSuccess:()=>{refetch()},showSuccessMessage:true })
const { updateQueryParams } = useUpdateQueryParams()
const pageBrowser = useQueryParams<PageBrowserProps>()
@ -108,7 +106,6 @@ export function RepositoryTagsContent({ repoMetadata }: Pick<GitInfoProps, 'repo
message={getString('tagEmpty')}
onButtonClick={() => {
openModal()
refetch()
}}
/>