Skip to content

Commit

Permalink
fix blockedSlot array forcing only one element to be presesnt at a time
Browse files Browse the repository at this point in the history
  • Loading branch information
vinaybadgujar102 committed May 12, 2024
1 parent 71039c4 commit 009f322
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/api/TasksAPI/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 009f322

Please sign in to comment.