Skip to content

Commit

Permalink
typo fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
yesoreyeram committed Jun 20, 2024
1 parent 394cb75 commit bcfc5d6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions pkg/infinity/googleSheets.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,25 +79,25 @@ func GetGoogleSheetsResponse(urlResponseObject any, query models.Query) (*data.F
header := parsedCSV[0]
framerOptions := gframer.FramerOptions{}
for idx, h := range header {
colum := gframer.ColumnSelector{Selector: h, Alias: h}
column := gframer.ColumnSelector{Selector: h, Alias: h}
newHeader := strings.TrimSpace(h)
if h == "" {
newHeader = fmt.Sprintf("Field %d", idx+1)
header[idx] = newHeader
colum.Selector = newHeader
colum.Alias = newHeader
column.Selector = newHeader
column.Alias = newHeader
}
for _, col := range query.Columns {
if col.Selector == strings.TrimSpace(newHeader) {
colum.Type = col.Type
colum.TimeFormat = col.TimeStampFormat
column.Type = col.Type
column.TimeFormat = col.TimeStampFormat
if col.Text != "" {
header[idx] = col.Text
colum.Alias = col.Text
column.Alias = col.Text
}
}
}
framerOptions.Columns = append(framerOptions.Columns, colum)
framerOptions.Columns = append(framerOptions.Columns, column)
}
out := []any{}
for _, row := range records {
Expand Down
2 changes: 1 addition & 1 deletion src/editors/query/query.uql.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ declare const monaco: any;
const UQLTips: string[] = [
'💡 While editing UQL, you can press ctrl+s/cmd+s to run the query',
'💡 You can use `project kv()` command to transform key value pair/object into array',
'💡 You can use `mv-expand "colum_name"` command to expand the nested array',
'💡 You can use `mv-expand "column_name"` command to expand the nested array',
'💡 You can prefix each line with # to mark that as a comment',
];

Expand Down

0 comments on commit bcfc5d6

Please sign in to comment.