Skip to content

Commit 70d5458

Browse files
committed
refactor: 撤销代码更改
1 parent 9a6b771 commit 70d5458

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/BootstrapBlazor/Components/Table/TableColumn.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,10 @@ public string GetFieldName()
557557

558558
while (express is MemberExpression member)
559559
{
560-
fields.Add(member.Member.Name);
560+
if (member.Expression is MemberExpression)
561+
{
562+
fields.Add(member.Member.Name);
563+
}
561564
express = member.Expression;
562565
}
563566

@@ -566,6 +569,10 @@ public string GetFieldName()
566569
fields.Reverse();
567570
FieldName = string.Join(".", fields);
568571
}
572+
else
573+
{
574+
FieldName = _fieldIdentifier?.FieldName;
575+
}
569576
}
570577
return FieldName ?? "";
571578
}

0 commit comments

Comments
 (0)