mirror of
https://github.com/hcengineering/platform.git
synced 2025-01-08 21:27:45 +03:00
fix(planner): frozen slots when switching between todos (#4944)
Signed-off-by: Eduard Aksamitov <e@euaaaio.ru>
This commit is contained in:
parent
d5b6942f7d
commit
81e8a74d23
@ -24,14 +24,15 @@
|
||||
import Workslots from './Workslots.svelte'
|
||||
|
||||
export let todo: ToDo
|
||||
let slots: WorkSlot[] = []
|
||||
|
||||
const q = createQuery()
|
||||
q.query(time.class.WorkSlot, { attachedTo: todo._id }, (res) => {
|
||||
slots = res
|
||||
})
|
||||
|
||||
const client = getClient()
|
||||
const query = createQuery()
|
||||
|
||||
let slots: WorkSlot[] = []
|
||||
|
||||
$: query.query(time.class.WorkSlot, { attachedTo: todo._id }, (res) => {
|
||||
slots = res
|
||||
})
|
||||
|
||||
async function change (e: CustomEvent<{ startDate: number, dueDate: number, slot: Ref<WorkSlot> }>): Promise<void> {
|
||||
const { startDate, dueDate, slot } = e.detail
|
||||
|
Loading…
Reference in New Issue
Block a user