Skip to content

Commit 30a6a9b

Browse files
authored
Fix rendering of sorting direction (#66)
1 parent 8b43964 commit 30a6a9b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/provider/transformations.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ func createTransformations(transformations []Transformations) []grafana.Transfor
342342
Options: map[string]interface{}{
343343
"sort": []map[string]interface{}{
344344
{
345-
"desk": sortBy.Reverse.ValueBool(),
345+
"desc": sortBy.Reverse.ValueBool(),
346346
"field": sortBy.Field.ValueString(),
347347
},
348348
},

internal/provider/transformations_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ const testAccTransformationTableDataSourceExpectedJson = `{
9090
"options": {
9191
"sort": [
9292
{
93-
"desk": false,
93+
"desc": false,
9494
"field": "test 2"
9595
}
9696
]

0 commit comments

Comments
 (0)