diff --git a/src/OrchardCore/OrchardCore.Search.AzureAI.Core/Services/AzureAISearchIndexingService.cs b/src/OrchardCore/OrchardCore.Search.AzureAI.Core/Services/AzureAISearchIndexingService.cs index 34d4b2c18ec..a88bdc87a53 100644 --- a/src/OrchardCore/OrchardCore.Search.AzureAI.Core/Services/AzureAISearchIndexingService.cs +++ b/src/OrchardCore/OrchardCore.Search.AzureAI.Core/Services/AzureAISearchIndexingService.cs @@ -73,11 +73,6 @@ public async Task ProcessContentItemsAsync(params string[] indexNames) lastTaskId = Math.Min(lastTaskId, taskId); } - if (indexSettings.Count == 0) - { - return; - } - var tasks = new List(); var allContentTypes = indexSettings.SelectMany(x => x.IndexedContentTypes ?? []).Distinct().ToList();