mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: course creation/del + file upload
This commit is contained in:
parent
9a8e4e4492
commit
c838b7e9cd
9 changed files with 151 additions and 21 deletions
|
|
@ -17,7 +17,7 @@ const Organizations = () => {
|
|||
}
|
||||
|
||||
async function deleteOrganization(org_id:any) {
|
||||
const response = await deleteOrganizationFromBackend(org_id);
|
||||
const response = await deleteOrganizationFromBackend(org_id);
|
||||
const newOrganizations = userOrganizations.filter((org:any) => org.org_id !== org_id);
|
||||
setUserOrganizations(newOrganizations);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue