mirror of
https://github.com/strapi/strapi.git
synced 2025-12-17 18:25:40 +00:00
fix: diff indexes columns
fixes: https://github.com/strapi/strapi/issues/13654
This commit is contained in:
parent
376ff3133c
commit
b87f0eef4e
@ -53,7 +53,7 @@ module.exports = db => {
|
|||||||
const diffIndexes = (oldIndex, index) => {
|
const diffIndexes = (oldIndex, index) => {
|
||||||
const changes = [];
|
const changes = [];
|
||||||
|
|
||||||
if (_.difference(oldIndex.columns, index.columns).length > 0) {
|
if (!_.isEqual(oldIndex.columns, index.columns)) {
|
||||||
changes.push('columns');
|
changes.push('columns');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user