Fix map click in server clustering mode when item not loaded
All checks were successful
Build Docker Image / build (push) Successful in 3m34s
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:
@@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user