Fix ESLint indent and unused variable in map composables.
PR / test (pull_request) Successful in 27s
PR / lint (pull_request) Successful in 28s
PR / e2e (pull_request) Successful in 46s
PR / docker-build (pull_request) Successful in 54s

This commit is contained in:
Madison Grubb
2026-06-24 16:29:33 -04:00
parent aa8a0bd83f
commit 755309d103
2 changed files with 13 additions and 12 deletions
+4 -3
View File
@@ -28,7 +28,7 @@ export function useCotStream(boundsRef, layerQueryRef) {
const subscribedKey = ref('')
const streamBounds = ref(null)
const setEntities = record => {
const setEntities = (record) => {
entities.value = Object.freeze(record)
}
@@ -66,8 +66,9 @@ export function useCotStream(boundsRef, layerQueryRef) {
}))
es.addEventListener('remove', e => parseEvent(e, ({ id }) => {
if (!id) return
const { [id]: _removed, ...rest } = entities.value
setEntities(rest)
setEntities(Object.fromEntries(
Object.entries(entities.value).filter(([key]) => key !== String(id)),
))
}))
es.onerror = () => {
closeStream()