diff --git a/packages/backend/src/helpers/global-variable.js b/packages/backend/src/helpers/global-variable.js index 5f7706f9..843499fc 100644 --- a/packages/backend/src/helpers/global-variable.js +++ b/packages/backend/src/helpers/global-variable.js @@ -98,9 +98,9 @@ const globalVariable = async (options) => { }); return { - key: datastore.key, - value: datastore.value, - [datastore.key]: datastore.value, + key: key, + value: datastore?.value ?? null, + [key]: datastore?.value ?? null, }; }, set: async ({ key, value }) => {