From 42b16069a6539c8664f52537c2f5f59510131e4b Mon Sep 17 00:00:00 2001 From: Michael Drury Date: Tue, 3 Nov 2020 15:35:27 +0000 Subject: [PATCH] Fixing issue that was breaking linting. --- packages/client/src/api/index.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/client/src/api/index.js b/packages/client/src/api/index.js index 1279ebcb89..249c8731fa 100644 --- a/packages/client/src/api/index.js +++ b/packages/client/src/api/index.js @@ -80,10 +80,7 @@ const makeRowRequestBody = (parameters, state) => { if (body._table) delete body._table // then override with supplied parameters - for (let fieldName in parameters.fields) { - if (!parameters.fields.hasOwnProperty(fieldName)) { - continue - } + for (let fieldName of Object.keys(parameters.fields)) { const field = parameters.fields[fieldName] // ensure fields sent are of the correct type