From 009f3228caba281acf2a800c71d565bcc2c1f40c Mon Sep 17 00:00:00 2001 From: vinaybadgujar102 Date: Sun, 12 May 2024 11:55:42 +0530 Subject: [PATCH] fix blockedSlot array forcing only one element to be presesnt at a time --- src/api/TasksAPI/index.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/api/TasksAPI/index.ts b/src/api/TasksAPI/index.ts index 73323fefa..145e31895 100644 --- a/src/api/TasksAPI/index.ts +++ b/src/api/TasksAPI/index.ts @@ -162,7 +162,6 @@ export const addBlockedSlot = async (goalId: string, slot: { start: string; end: .where("goalId") .equals(goalId) .modify((obj: TaskItem) => { - obj.blockedSlots = []; obj.blockedSlots.push(slot); }); }).catch((e) => {