Skip to content

Commit aa75a55

Browse files
authored
Merge pull request #397 from fmasa/fix-career-dupl
Handle careers with duplicate career level IDs
2 parents 47792f0 + 9b745af commit aa75a55

File tree

1 file changed

+1
-1
lines changed
  • common/src/commonMain/kotlin/cz/frantisekmasa/wfrp_master/common/core/ui/forms

1 file changed

+1
-1
lines changed

common/src/commonMain/kotlin/cz/frantisekmasa/wfrp_master/common/core/ui/forms/CareerSelectBox.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ private fun CareerChooserDialog(
184184
icon = Resources.Drawable.Career,
185185
)
186186
},
187-
key = { it.first.levelId },
187+
key = { it.first.careerId to it.first.levelId },
188188
) { (level, label) ->
189189
ListItem(
190190
modifier =

0 commit comments

Comments
 (0)