From 589dc0a417304ddbe2e17e1a2069c90f0cd13c69 Mon Sep 17 00:00:00 2001 From: Hisaki Akaza <4494300+the-red@users.noreply.github.com> Date: Sun, 28 Feb 2021 11:59:58 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=E3=82=82=E3=81=86=E3=81=A1?= =?UTF-8?q?=E3=82=87=E3=81=A3=E3=81=A8=E3=82=B7=E3=83=B3=E3=83=97=E3=83=AB?= =?UTF-8?q?=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/push.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/push.js b/lib/push.js index 834168d..b797c6e 100644 --- a/lib/push.js +++ b/lib/push.js @@ -27,7 +27,7 @@ const addField = async (message, ktn, kintoneInfo) => { // サブテーブル内フィールドを追加する場合 const outerProperty = Object.values(kintoneInfo.properties) .filter((_) => _.type === 'SUBTABLE') - .find((_) => Object.values(_.fields).some((_) => _.code === fieldCode)) + .find((_) => Object.keys(_.fields).some((code) => code === fieldCode)) const innerProperty = Object.values(outerProperty.fields).find((_) => _.code === fieldCode) property = {