Add template parameter to postCustomComponent

function
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-11-28 23:00:06 -03:00
commit 343f3992f8

View file

@ -357,7 +357,11 @@ export async function postCustomComponent(
code: string,
apiClass: 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(