Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1a8f35e

Browse files
committedOct 3, 2022
Match thing variable_name with dashboard variable_id
1 parent 677e08b commit 1a8f35e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎internal/template/dashboard.go

Lines changed: 1 addition & 1 deletion
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)
Please sign in to comment.