Add template parameter to postCustomComponent
function
This commit is contained in:
parent
2444a7dd09
commit
343f3992f8
1 changed files with 5 additions and 1 deletions
|
|
@ -357,7 +357,11 @@ export async function postCustomComponent(
|
||||||
code: string,
|
code: string,
|
||||||
apiClass: APIClassType
|
apiClass: APIClassType
|
||||||
): Promise<AxiosResponse<APIClassType>> {
|
): Promise<AxiosResponse<APIClassType>> {
|
||||||
return await api.post(`${BASE_URL_API}custom_component`, { code });
|
let template = apiClass.template
|
||||||
|
return await api.post(`${BASE_URL_API}custom_component`, {
|
||||||
|
code,
|
||||||
|
template
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function postCustomComponentUpdate(
|
export async function postCustomComponentUpdate(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue