fix LangSmith project config error (#7996)

This commit is contained in:
Charlie.Wei 2024-09-08 13:25:27 +08:00 committed by GitHub
commit feefeb44d7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 59 additions and 8 deletions

View file

@ -48,9 +48,10 @@ const ProviderPanel: FC<Props> = ({
e.preventDefault()
e.stopPropagation()
const url = `${config?.host}/project/${config?.project_key}`
window.open(url, '_blank', 'noopener,noreferrer')
}, [])
const url = config?.project_url
if (url)
window.open(url, '_blank', 'noopener,noreferrer')
}, [config?.project_url])
const handleChosen = useCallback((e: React.MouseEvent) => {
e.stopPropagation()