return null if not exist table

This commit is contained in:
SrGooglo 2023-05-17 16:52:12 +00:00
parent 871f0a3c33
commit 8ba8450cef

View File

@ -12,6 +12,10 @@ export default class StoragedState {
getState = async (stateKey) => {
const data = await this.db.table("states").get(stateKey)
if (!data) {
return null
}
return data.value
}