Fix map click in server clustering mode when item not loaded
All checks were successful
Build Docker Image / build (push) Successful in 3m34s

When using server-side clustering, the clicked item's uuid might not be
in the paginated props.items array. Now emits a minimal object with just
uuid so parent pages can still navigate.
This commit is contained in:
Ruslan Bakiev
2026-01-21 14:40:38 +07:00
parent 9787dc2b2a
commit 1b0fae1164

View File

@@ -332,6 +332,11 @@ const onMapSelect = (uuid: string) => {
if (item) { if (item) {
emit('select', item) emit('select', item)
emit('update:selectedId', uuid) emit('update:selectedId', uuid)
} else if (props.useServerClustering) {
// For server clustering, item might not be in paginated props.items
// Emit minimal item with just uuid so parent can still navigate
emit('select', { uuid })
emit('update:selectedId', uuid)
} }
} }