fix(datastore): stop undefined datastore entry throwing
This commit is contained in:
@@ -98,9 +98,9 @@ const globalVariable = async (options) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
key: datastore.key,
|
key: key,
|
||||||
value: datastore.value,
|
value: datastore?.value ?? null,
|
||||||
[datastore.key]: datastore.value,
|
[key]: datastore?.value ?? null,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
set: async ({ key, value }) => {
|
set: async ({ key, value }) => {
|
||||||
|
Reference in New Issue
Block a user