作者 yangfu

chore: optimize table preview

@@ -114,7 +114,7 @@ func (d *FilePreviewDto) Load(fileId int, m *domain.DataLoadDataTable, file *red @@ -114,7 +114,7 @@ func (d *FilePreviewDto) Load(fileId int, m *domain.DataLoadDataTable, file *red
114 } 114 }
115 115
116 var fields []*domain.Field 116 var fields []*domain.Field
117 - mapData := domain.ToFieldData(m.Fields, formatData(m.Data, func(s string) string { 117 + mapData := domain.ToFieldData(file.Fields, formatData(m.Data, func(s string) string {
118 if s == "<NA>" { 118 if s == "<NA>" {
119 return "" 119 return ""
120 } 120 }