Skip to content

Commit

Permalink
Fix Issue #4272
Browse files Browse the repository at this point in the history
Fix Issue #4272 for Ios 12.4
  • Loading branch information
faskade committed Feb 27, 2021
1 parent f8ca5c0 commit c7c82af
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/vue/get-params.js
Original file line number Diff line number Diff line change
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 c7c82af

Please sign in to comment.