Handle google drive connectors without folder_path

This commit is contained in:
Weves
2023-07-26 12:13:23 -07:00
committed by Chris Weaver
parent 273802eff0
commit d5f172c292

View File

@@ -219,8 +219,11 @@ const GoogleDriveConnectorManagement = ({
}}
/>
</div>
{googleDriveConnectorIndexingStatus.connector.connector_specific_config
.folder_paths.length > 0 && (
{/* Need to do the seemingly unnecessary handling for undefined `folder_paths` for backwards compatibility */}
{(
googleDriveConnectorIndexingStatus.connector.connector_specific_config
.folder_paths || []
).length > 0 && (
<div className="mt-3">
It is setup to index the following folders:{" "}
<div className="mx-2">