fix: diff indexes columns

fixes: https://github.com/strapi/strapi/issues/13654
This commit is contained in:
LK HO 2022-06-30 13:08:00 +08:00 committed by GitHub
parent 376ff3133c
commit b87f0eef4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,7 +53,7 @@ module.exports = db => {
const diffIndexes = (oldIndex, index) => {
const changes = [];
if (_.difference(oldIndex.columns, index.columns).length > 0) {
if (!_.isEqual(oldIndex.columns, index.columns)) {
changes.push('columns');
}