From 17403d817297a3fffddbba115e3b64aa6807c502 Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Tue, 30 Apr 2024 13:34:44 -0300 Subject: [PATCH] Refactored GlobalVariablesStore to include a value property in globalVariables object --- .../types/zustand/globalVariables/index.ts | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/src/frontend/src/types/zustand/globalVariables/index.ts b/src/frontend/src/types/zustand/globalVariables/index.ts index 0fc9bb473..45fda27cd 100644 --- a/src/frontend/src/types/zustand/globalVariables/index.ts +++ b/src/frontend/src/types/zustand/globalVariables/index.ts @@ -1,10 +1,23 @@ export type GlobalVariablesStore = { globalVariablesEntries: Array; - globalVariables: { [name: string]: { id: string; type?: string, default_fields?: string[] } }; + globalVariables: { + [name: string]: { + id: string; + type?: string; + default_fields?: string[]; + value?: string; + }; + }; setGlobalVariables: (variables: { - [name: string]: { id: string; type?: string, default_fields?: string[]}; + [name: string]: { id: string; type?: string; default_fields?: string[],value?: string }; }) => void; - addGlobalVariable: (name: string, id: string, type?: string, default_fields?: string[]) => void; + addGlobalVariable: ( + name: string, + id: string, + type?: string, + default_fields?: string[], + value?: string + ) => void; removeGlobalVariable: (name: string) => Promise; getVariableId: (name: string) => string | undefined; unavaliableFields: Set;