From 62f7172593aa69c9a3c297ff121e5fa4bff26776 Mon Sep 17 00:00:00 2001 From: Thomas Bleijendaal Date: Tue, 23 Jan 2024 20:44:10 +0100 Subject: [PATCH] Pr fix --- src/RapidCMS.UI/Components/Editors/BasePicker.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/RapidCMS.UI/Components/Editors/BasePicker.cs b/src/RapidCMS.UI/Components/Editors/BasePicker.cs index c43d49fe..e878a35d 100644 --- a/src/RapidCMS.UI/Components/Editors/BasePicker.cs +++ b/src/RapidCMS.UI/Components/Editors/BasePicker.cs @@ -124,6 +124,11 @@ protected async Task SelectAllAsync() protected async Task UnselectAllAsync() { + if (RelationDataCollection == null) + { + return; + } + var items = RelationDataCollection.GetCurrentRelatedElementIds(); foreach (var item in items) {