Skip to content

Commit

Permalink
Prevent cached object model having incorrect cast
Browse files Browse the repository at this point in the history
  • Loading branch information
QSmally committed Nov 3, 2020
1 parent de708d4 commit add1408
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Connections/Connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,8 @@ class Connection extends PartialConnection {
const Original = Frame;
const LastKey = Pathlike.pop();

if (Item) delete Item._DataStore;

for (let i = 0; i < Pathlike.length; i++) {
if (typeof Frame !== "object") return undefined;
if (!(Pathlike[i] in Frame)) {
Expand Down

0 comments on commit add1408

Please sign in to comment.