Web:Client:Fix if there is one item in the drop-down menu, then we display this item immediately.
This commit is contained in:
parent
316276cd2f
commit
742ba30feb
@ -512,6 +512,10 @@ class ContextOptionsStore {
|
||||
options[index].items = model[index].items.filter((item) =>
|
||||
filter.includes(item.key)
|
||||
);
|
||||
|
||||
if (options[index].items.length === 1) {
|
||||
options[index] = options[index].items[0];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user