Skip to content

Commit

Permalink
Correctly select enum webui flavor via "ui name" (#772)
Browse files Browse the repository at this point in the history
The selection always returned the default value fallback due to incorrectly using the enums value name instead of the "uiName" of the enum value
  • Loading branch information
schroda authored Nov 20, 2023
1 parent 2298e71 commit 9110c07
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ enum class WebUIFlavor(
;

companion object {
fun from(value: String): WebUIFlavor = entries.find { it.name == value } ?: WEBUI
fun from(value: String): WebUIFlavor = entries.find { it.uiName == value } ?: WEBUI
}
}

Expand Down

0 comments on commit 9110c07

Please sign in to comment.