return null if not exist table

This commit is contained in:
SrGooglo 2023-05-17 16:52:12 +00:00
parent 1342c76261
commit 93612ce956

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
}