Skip to content

Commit

Permalink
$mol_db: undefined when no store instead of throwing error
Browse files Browse the repository at this point in the history
  • Loading branch information
jin committed Dec 26, 2023
1 parent e5a249a commit 1a1f913
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion db/transaction/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ namespace $ {
{
ownKeys: ()=> [ ... this.native.objectStoreNames ],
has: ( _, name: string )=> this.native.objectStoreNames.contains( name ),
get: ( _, name: string )=> new $mol_db_store( this.native.objectStore( name ) ),
get: ( _, name: string, proxy )=> ( name in proxy )
? new $mol_db_store( this.native.objectStore( name ) )
: undefined,
},
)
}
Expand Down

0 comments on commit 1a1f913

Please sign in to comment.