Skip to content

Commit

Permalink
fix prototype
Browse files Browse the repository at this point in the history
  • Loading branch information
aralroca committed Oct 30, 2021
1 parent 3117202 commit a3ae2c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default function createStore(defaultStore = {}, callback) {
return WithStore;
},
get(target, path) {
if (path === 'prototype') return;
if (path === 'prototype') return {};
this._path.push(path);
return new Proxy(target, validator);
},
Expand Down

0 comments on commit a3ae2c7

Please sign in to comment.