Skip to content

Commit

Permalink
fix: correct call as async when delete service or service
Browse files Browse the repository at this point in the history
  • Loading branch information
newarifrh committed Aug 25, 2024
1 parent df78694 commit 6c64e08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/service/ServiceItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const ServiceItem = ({ service, onItemDeleted }: ServiceItemProps) => {
content: "Apakah Anda yakin ingin menghapus layanan ini?",
cancelText: "Batal",
okText: "Hapus",
onOk: () => handleDeleteService(service.id),
onOk: async () => await handleDeleteService(service.id),
});
},
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/team/TeamItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const TeamItem = ({ team, onItemUpdated, onItemDeleted }: TeamItemProps) => {
content: "Apakah Anda yakin ingin menghapus tim ini?",
cancelText: "Batal",
okText: "Hapus",
onOk: () => handleDeleteService(team.id),
onOk: async() => await handleDeleteService(team.id),
});
},
},
Expand Down

0 comments on commit 6c64e08

Please sign in to comment.