Ignore state if the value is empty.

This commit is contained in:
hchen2020 2023-08-21 23:48:17 -05:00
parent 2d04226a14
commit 36f0f2771b

View file

@ -85,7 +85,10 @@ public partial class ConversationService
{
foreach (JsonProperty property in root.EnumerateObject())
{
stateService.SetState(property.Name, property.Value.ToString());
if (!string.IsNullOrEmpty(property.Value.ToString()))
{
stateService.SetState(property.Name, property.Value.ToString());
}
}
}
}