Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2023-01-24 23:49:20 +07:00
committed by GitHub
parent 8a5b84802c
commit e8d5739847
6 changed files with 23 additions and 29 deletions
@@ -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>