mirror of
https://github.com/strapi/strapi.git
synced 2025-11-01 18:33:55 +00:00
fix: test was trying to remove undefined tables
This commit is contained in:
parent
1846541cac
commit
e29fa46749
@ -371,7 +371,9 @@ module.exports = (db) => {
|
||||
})
|
||||
.map((dependsOnTable) => {
|
||||
return srcSchema.tables.find((srcTable) => srcTable.name === dependsOnTable.name);
|
||||
});
|
||||
})
|
||||
// In case the table is not found, filter undefined values
|
||||
.filter((table) => !_.isNil(table));
|
||||
|
||||
removedTables.push(srcTable, ...dependencies);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user