Fix jet de résistance V2

sans cométence s'il n'y a pas de sélection
This commit is contained in:
2026-01-16 01:17:55 +01:00
parent 850cae3979
commit 04f550dd21
2 changed files with 3 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ export class RollPartComp extends RollPartSelect {
if (selected.forced) {
refs.all = all.filter(comp => Grammar.equalsInsensitive(comp.label, selected.key))
if (refs.all.length == 0) {
if (selected.key.length > 0) {
if (selected.key && selected.key.length > 0) {
refs.all = all.filter(comp => Grammar.includesLowerCaseNoAccent(comp.label, selected.key))
}
else {