mirror of
https://github.com/langflow-ai/langflow.git
synced 2026-07-25 20:20:08 +08:00
temp fix for default fields
This commit is contained in:
@ -876,15 +876,18 @@ export async function registerGlobalVariable({
|
||||
name,
|
||||
value,
|
||||
type,
|
||||
default_fields=[],
|
||||
}: {
|
||||
name: string;
|
||||
value: string;
|
||||
type?: string;
|
||||
default_fields?: string[];
|
||||
}): Promise<AxiosResponse<{ name: string; id: string; type: string }>> {
|
||||
return await api.post(`${BASE_URL_API}variables/`, {
|
||||
name,
|
||||
value,
|
||||
type,
|
||||
default_fields:default_fields
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user