fix LangSmith project config error (#7996)

This commit is contained in:
Charlie.Wei
2024-09-08 13:25:27 +08:00
committed by GitHub
parent d542b15cc0
commit feefeb44d7
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()