Skip to content

Commit

Permalink
refactor: もうちょっとシンプルに
Browse files Browse the repository at this point in the history
  • Loading branch information
the-red committed Feb 28, 2021
1 parent cc6bfca commit 589dc0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/push.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 589dc0a

Please sign in to comment.