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) {