From 343f3992f82a384e6e9f8c21b4644da587ee1aba Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Tue, 28 Nov 2023 23:00:06 -0300 Subject: [PATCH] Add template parameter to postCustomComponent function --- src/frontend/src/controllers/API/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/frontend/src/controllers/API/index.ts b/src/frontend/src/controllers/API/index.ts index 37e579428..8e5517131 100644 --- a/src/frontend/src/controllers/API/index.ts +++ b/src/frontend/src/controllers/API/index.ts @@ -357,7 +357,11 @@ export async function postCustomComponent( code: string, apiClass: APIClassType ): Promise> { - 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(