fix(catalog): add badge when selecting from list + fix checkbox position
All checks were successful
Build Docker Image / build (push) Successful in 3m51s

- onSelectItem now calls selectItem to add filter badge
- Checkbox repositioned to left-[420px] to not hide behind panel
- Hide List button when panel is open
This commit is contained in:
Ruslan Bakiev
2026-01-26 18:15:26 +07:00
parent 263e60e003
commit 69bb978526
2 changed files with 6 additions and 6 deletions

View File

@@ -415,11 +415,10 @@ const onMapSelect = async (item: any) => {
setLabel(infoType, itemId, itemName)
}
// Handle selection from SelectionPanel - open Info and close panel
// Handle selection from SelectionPanel - add to filter (show badge in search)
const onSelectItem = (type: string, item: any) => {
if (item.uuid && item.name) {
openInfo(type as 'hub' | 'supplier' | 'offer', item.uuid)
setLabel(type, item.uuid, item.name)
selectItem(type, item.uuid, item.name)
}
}