Skip to content

Commit acdd659

Browse files
pennampolldo
authored andcommitted
Match thing variable_name with dashboard variable_id
1 parent 52779c6 commit acdd659

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/template/dashboard.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func getVariableID(thingID string, variableName string, fetcher ThingFetcher) (s
7575
}
7676

7777
for _, v := range thing.Properties {
78-
if v.Name == variableName {
78+
if v.VariableName == variableName {
7979
return v.Id, nil
8080
}
8181
}

0 commit comments

Comments
 (0)