Skip to content

Commit

Permalink
Merge pull request #4273 from faskade/patch-1
Browse files Browse the repository at this point in the history
Fix Issue #4272
  • Loading branch information
nolimits4web committed Mar 1, 2021
2 parents 7aa6f1e + c7c82af commit 59993b5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/vue/get-params.js
Expand Up @@ -15,7 +15,9 @@ function getParams(obj = {}) {

const rest = {};
const allowedParams = paramsList.map((key) => key.replace(/_/, ''));
Object.keys(obj).forEach((key) => {
// Prevent empty Object.keys(obj) array on ios.
const plainObj = Object.assign({}, obj);
Object.keys(plainObj).forEach((key) => {
if (typeof obj[key] === 'undefined') return;
if (allowedParams.indexOf(key) >= 0) {
if (isObject(obj[key])) {
Expand Down

0 comments on commit 59993b5

Please sign in to comment.