mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 10:34:17 +00:00
return null if not exist table
This commit is contained in:
parent
871f0a3c33
commit
8ba8450cef
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user