Skip to content

Commit

Permalink
Fix out-of-bounds index in icons (openhab#727)
Browse files Browse the repository at this point in the history
Due to copy/paste and then not paying attention

Signed-off-by: Cody Cutrer <[email protected]>
Co-authored-by: Dan Cunningham <[email protected]>
  • Loading branch information
ccutrer and digitaldan authored Oct 16, 2023
1 parent 2c45224 commit af193f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenHABCore/Sources/OpenHABCore/Util/Endpoint.swift
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public extension Endpoint {
} else if components.count == 2 {
source = components[0]
set = "classic"
icon = components[2]
icon = components[1]
}
if source == "if" || source == "iconify" {
queryItems = [URLQueryItem(name: "height", value: "64")]
Expand Down

0 comments on commit af193f6

Please sign in to comment.