Skip to content

Commit

Permalink
fix/delete (#121)
Browse files Browse the repository at this point in the history
* fix(keyboard): deletion

* feat(service): revert

* feat(service): revert
  • Loading branch information
JyTosTT authored Sep 14, 2023
1 parent ffc0d03 commit cb006e7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions front/src/hooks/useBoard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,19 +58,19 @@ const useBoard = (board: TBoardOrNullify): {
return await BoardEntity.serviceNetworkLink(linkBody)
} else if (UtilsDrawer.isServiceVolumeLink(linker)) {
return await BoardEntity.serviceVolumeLink(linkBody)
} else {
throw new Error(Errors.NOT_IMPLEMENTED)
}

throw new Error(Errors.NOT_IMPLEMENTED)
}

const onDeletedLinker: EventListenerCallback<TLinker> = async (linker: TLinker) => {
const onDeletedLinker: EventListenerCallback<TLinker> = async (linker: TLinker): Promise<void> => {
if (UtilsDrawer.isServiceNetworkLink(linker)) {
await BoardEntity.deleteServiceNetworkLink(linker.entity!.id)
} else if (UtilsDrawer.isServiceVolumeLink(linker)) {
await BoardEntity.deleteServiceVolumeLink(linker.entity!.id)
} else {
throw new Error(Errors.NOT_IMPLEMENTED)
}

throw new Error(Errors.NOT_IMPLEMENTED)
}

const onUnselectedDrawer: EventListenerCallback<any> = () => {
Expand Down

0 comments on commit cb006e7

Please sign in to comment.