From 9497baa9ec5c5d37078193da7a755d1fc6ab37b8 Mon Sep 17 00:00:00 2001 From: CuR4 Date: Wed, 29 Nov 2023 16:37:50 +0900 Subject: [PATCH] index can be undefined --- lib/models.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/models.js b/lib/models.js index 23c3c54e..3d15d101 100644 --- a/lib/models.js +++ b/lib/models.js @@ -136,6 +136,7 @@ export const getActions = async (oldTables, newTables, upActions = null) => { const loopIndexes = (diff, actionType, actions, actionTemplate, ArrayOfIndexes = false) => { Object.values(diff).forEach((index) => { if (ArrayOfIndexes) index = index[index]; + if(!index) return const actionTemp = { actionType, fields: index.fields,