temp fix for default fields

This commit is contained in:
anovazzi1 2024-04-30 08:22:32 -03:00
commit bd0e928efe

View file

@ -876,15 +876,18 @@ export async function registerGlobalVariable({
name, name,
value, value,
type, type,
default_fields=[],
}: { }: {
name: string; name: string;
value: string; value: string;
type?: string; type?: string;
default_fields?: string[];
}): Promise<AxiosResponse<{ name: string; id: string; type: string }>> { }): Promise<AxiosResponse<{ name: string; id: string; type: string }>> {
return await api.post(`${BASE_URL_API}variables/`, { return await api.post(`${BASE_URL_API}variables/`, {
name, name,
value, value,
type, type,
default_fields:default_fields
}); });
} }