mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-10 19:57:43 +02:00
@@ -20,13 +20,14 @@
|
||||
import { toIntl } from '..'
|
||||
import ContentPopup from './ContentPopup.svelte'
|
||||
|
||||
let txes: (TxCUD<Doc> & { index: number })[] = []
|
||||
type TxCUDIndex = TxCUD<Doc> & { index: number }
|
||||
let txes: TxCUDIndex[] = []
|
||||
|
||||
const activityQuery = createQuery()
|
||||
|
||||
$: activityQuery.query(core.class.TxCUD, { objectSpace: core.space.Model }, (result) => {
|
||||
$: activityQuery.query<TxCUD<Doc>>(core.class.TxCUD, { objectSpace: core.space.Model }, (result) => {
|
||||
let c = 0
|
||||
txes = result.map((t) => ({ ...t, index: c++ }))
|
||||
txes = result.map((t) => ({ ...t, index: c++ } as TxCUDIndex))
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user