mirror of
https://github.com/hcengineering/platform.git
synced 2025-05-30 12:20:00 +00: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'
|
import Workslots from './Workslots.svelte'
|
||||||
|
|
||||||
export let todo: ToDo
|
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 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> {
|
async function change (e: CustomEvent<{ startDate: number, dueDate: number, slot: Ref<WorkSlot> }>): Promise<void> {
|
||||||
const { startDate, dueDate, slot } = e.detail
|
const { startDate, dueDate, slot } = e.detail
|
||||||
|
Loading…
Reference in New Issue
Block a user