Skip to content

Commit

Permalink
fix: fix arrays not being correctly unserialized
Browse files Browse the repository at this point in the history
  • Loading branch information
dackmin committed Jun 3, 2021
1 parent 073c8f3 commit 6a857ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.js
Expand Up @@ -114,7 +114,7 @@ const unserialize = (
}

return res;
}, {});
}, Array.isArray(data) ? [] : {});
};

export const send = (target, name, data, options = {}) => {
Expand Down

0 comments on commit 6a857ae

Please sign in to comment.