From e65072ef023d9170f5a7e15912cfef1d7371498f Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 22 Nov 2021 19:22:17 +0100 Subject: [PATCH] Fix component resolve. --- .../Squidex.Domain.Apps.Entities/AppProviderExtensions.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backend/src/Squidex.Domain.Apps.Entities/AppProviderExtensions.cs b/backend/src/Squidex.Domain.Apps.Entities/AppProviderExtensions.cs index ca0fe4eceb..ac5608af12 100644 --- a/backend/src/Squidex.Domain.Apps.Entities/AppProviderExtensions.cs +++ b/backend/src/Squidex.Domain.Apps.Entities/AppProviderExtensions.cs @@ -26,6 +26,11 @@ public static async Task GetComponentsAsync(this IAppProvide async Task ResolveWithIdsAsync(IField field, ReadonlyList? schemaIds) { + if (schemaIds == null) + { + return; + } + foreach (var schemaId in schemaIds) { if (schemaId == schema.Id)