Skip to content

Commit

Permalink
Merge branch 'dui3/alpha' into rhino-interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhathcock committed Jun 20, 2024
2 parents 90f2b08 + e31969f commit 23a8211
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Speckle.Converters.Common.Objects;
using System.Collections;
using Speckle.Converters.Common.Objects;
using Speckle.Core.Models;
using Speckle.Core.Models.Extensions;

Expand Down Expand Up @@ -49,6 +50,10 @@ public object Convert(Base target)
var displayValue = target.TryGetDisplayValue<Base>();
if (displayValue != null)
{
if (displayValue is IList && !displayValue.Any())
{
throw new NotSupportedException($"No display value found for {type}");
}
return FallbackToDisplayValue(displayValue);
}

Expand Down

0 comments on commit 23a8211

Please sign in to comment.