Web:Client:Fix if there is one item in the drop-down menu, then we display this item immediately.

This commit is contained in:
Vlada Gazizova 2023-03-21 22:17:26 +03:00
parent 316276cd2f
commit 742ba30feb

View File

@ -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];
}
}
}
}