mirror of
https://github.com/harness/drone.git
synced 2025-05-31 03:32:44 +00:00
fix: [code-289]: fix clone
This commit is contained in:
parent
cc1f635ddd
commit
1beac5ff12
@ -32,7 +32,7 @@ const CloneCredentialDialog = (props: CloneCredentialDialogProps) => {
|
||||
const { showError } = useToaster()
|
||||
const hash = generateAlphaNumericHash(6)
|
||||
|
||||
const tokenData = hooks?.useGenerateToken(hash, currentUser.uid, flag)
|
||||
const tokenData = hooks?.useGenerateToken?.(hash, currentUser.uid, flag)
|
||||
useEffect(() => {
|
||||
if (tokenData) {
|
||||
if (tokenData && tokenData?.status !== 400) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user