From 80189e24146886d6c40aa32c4343ee17985cfda8 Mon Sep 17 00:00:00 2001 From: Claire Kuang Date: Thu, 1 Feb 2024 09:46:02 +0000 Subject: [PATCH] fixes added logic to omit objects with no applicationid --- SpeckleAutomateDotnetExample/AutomateFunction.cs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/SpeckleAutomateDotnetExample/AutomateFunction.cs b/SpeckleAutomateDotnetExample/AutomateFunction.cs index ef7f104..a42e97b 100644 --- a/SpeckleAutomateDotnetExample/AutomateFunction.cs +++ b/SpeckleAutomateDotnetExample/AutomateFunction.cs @@ -175,10 +175,14 @@ static class AutomateFunction } else { - //automationContext.AttachInfoToObjects(ADDED, new List() { testObject.id }); - addedList.Add( - new Tuple(testObject.id, testObject.speckle_type) - ); + // we're skipping objects without an applicationId for now, since we're doing so in the release commit + if (string.IsNullOrEmpty(testObject.applicationId)) + { + //automationContext.AttachInfoToObjects(ADDED, new List() { testObject.id }); + addedList.Add( + new Tuple(testObject.id, testObject.speckle_type) + ); + } } }