mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
fix: collection creation bug
This commit is contained in:
parent
3f2d9d2b9f
commit
394f4e0b5a
1 changed files with 2 additions and 2 deletions
|
|
@ -4,7 +4,7 @@ import React from "react";
|
|||
import { Title } from "@components/UI/Elements/Styles/Title";
|
||||
import { createCollection } from "@services/courses/collections";
|
||||
import useSWR from "swr";
|
||||
import { getAPIUrl } from "@services/config/config";
|
||||
import { getAPIUrl, getUriWithOrg } from "@services/config/config";
|
||||
import { swrFetcher } from "@services/utils/ts/requests";
|
||||
import { getOrganizationContextInfo } from "@services/organizations/orgs";
|
||||
|
||||
|
|
@ -44,7 +44,7 @@ function NewCollection(params : any) {
|
|||
org_id: org.org_id,
|
||||
};
|
||||
await createCollection(collection);
|
||||
router.push("/org/" + orgslug + "/collections");
|
||||
router.push(getUriWithOrg(orgslug, "/collections"));
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue