fix select record tree item

This commit is contained in:
Yuri Kuznetsov
2025-05-10 10:00:18 +03:00
parent 3cf87f8bd9
commit 3a295bcbad
@@ -145,11 +145,11 @@ class SelectCategoryTreeRecordsModalView extends SelectRecordsModalView {
checkAllResultDisabled: true,
buttonsDisabled: true,
}, listView => {
listView.once('select', model => {
this.trigger('select', model);
listView.once('select', models => {
this.trigger('select', models);
if (this.options.onSelect) {
this.options.onSelect([model]);
this.options.onSelect(models);
}
this.close();