Skip to content

Commit

Permalink
[SDESK-7028] fix(ui): Planning lock not removed when adding as Event (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkLark86 authored Aug 17, 2023
1 parent aea0a9c commit ef99fe6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion client/reducers/locks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ function removeLock(state: ILockedItems, data: IWebsocketMessageData['ITEM_UNLOC
delete state.recurring[data.recurrence_id];
} else if (data.event_item != null) {
delete state.event[data.event_item];
} else {
}

// Always try and delete a lock direclty on the supplied item
// This can happen when adding an Event from a Planning item
if (state[data.type][data.item] != null) {
delete state[data.type][data.item];
}

Expand Down

0 comments on commit ef99fe6

Please sign in to comment.