[fix]:change the code for the dynamic document links for data sources (#8138)

* change the code for the dynamic documentation link for data sources

* fix code for dynamic url creation

* fix code
This commit is contained in:
Karan Rathod 2023-11-22 10:42:43 +05:30 committed by GitHub
parent 9f61f676dc
commit 5f04d2cba7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -856,7 +856,11 @@ class DataSourceManagerComponent extends React.Component {
<SolidIcon name="logs" fill="#3E63DD" width="20" style={{ marginRight: '8px' }} />
<a
className="color-primary tj-docs-link tj-text-sm"
href={`https://docs.tooljet.io/docs/data-sources/${selectedDataSource.kind}`}
href={
selectedDataSource?.pluginId && selectedDataSource.pluginId.trim() !== ''
? `https://docs.tooljet.com/docs/marketplace/plugins/marketplace-plugin-${selectedDataSource.kind}/`
: `https://docs.tooljet.com/docs/data-sources/${selectedDataSource.kind}`
}
target="_blank"
rel="noreferrer"
data-cy="link-read-documentation"