commit
53bf0fee19
|
|
@ -419,12 +419,10 @@ public class ConversationStateService : IConversationStateService
|
||||||
if (AgentService.AgentParameterTypes.IsNullOrEmpty())
|
if (AgentService.AgentParameterTypes.IsNullOrEmpty())
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
var agentTypes = AgentService.AgentParameterTypes
|
if (!AgentService.AgentParameterTypes.TryGetValue(_routingContext.GetCurrentAgentId(), out var agentTypes))
|
||||||
.Where(p => p.Value != null)
|
return true;
|
||||||
.SelectMany(p => p.Value)
|
|
||||||
.ToList();
|
|
||||||
|
|
||||||
if (agentTypes == null || agentTypes.Count == 0)
|
if (agentTypes.IsNullOrEmpty())
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
var found = agentTypes.FirstOrDefault(t => t.Key == name);
|
var found = agentTypes.FirstOrDefault(t => t.Key == name);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue