Skip to content

Commit 7902708

Browse files
alelomFraser Greenroyd
authored andcommitted
Update FullCRUD.cs
1 parent 177ee39 commit 7902708

File tree

1 file changed

+2
-2
lines changed
  • BHoM_Adapter/AdapterActions/_PushMethods/CRUDDispatchers

1 file changed

+2
-2
lines changed

BHoM_Adapter/AdapterActions/_PushMethods/CRUDDispatchers/FullCRUD.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ protected bool FullCRUD<T>(IEnumerable<T> objectsToPush, PushType pushType = Pus
4747
// Make sure objects are distinct
4848
List<T> newObjects = objectsToPush.Distinct(Engine.Adapter.Query.GetComparerForType<T>(this)).ToList();
4949

50-
// Make sure objects are tagged
51-
if (tag != "")
50+
// Add the tag if provided
51+
if (!string.IsNullOrWhiteSpace(tag))
5252
newObjects.ForEach(x => x.Tags.Add(tag));
5353

5454
//Read all the objects of that type from the external model

0 commit comments

Comments
 (0)