mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
Fixed (#2204)
This commit is contained in:
+6
@@ -40,6 +40,12 @@ internal static class PortableValueExtensions
|
||||
private static TableValue ToTable(this PortableValue[] values)
|
||||
{
|
||||
FormulaValue[] formulaValues = values.Select(value => value.ToFormula()).ToArray();
|
||||
|
||||
if (formulaValues.Length == 0)
|
||||
{
|
||||
return FormulaValue.NewTable(RecordType.Empty());
|
||||
}
|
||||
|
||||
if (formulaValues[0] is RecordValue recordValue)
|
||||
{
|
||||
return FormulaValue.NewTable(ParseRecordType(recordValue), formulaValues.OfType<RecordValue>());
|
||||
|
||||
Reference in New Issue
Block a user