mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-31 00:23:57 +00:00
Merge pull request #1063 from balena-io/1060-list-comp
Take order into account when comparing service config arrays
This commit is contained in:
commit
37430124ca
@ -689,10 +689,7 @@ export class Service {
|
|||||||
sameConfig =
|
sameConfig =
|
||||||
sameConfig &&
|
sameConfig &&
|
||||||
_.every(Service.configArrayFields, (field: keyof ServiceConfig) => {
|
_.every(Service.configArrayFields, (field: keyof ServiceConfig) => {
|
||||||
const eq = _.isEqual(
|
const eq = _.isEqual(this.config[field], service.config[field]);
|
||||||
_.sortBy(this.config[field] as unknown[]),
|
|
||||||
_.sortBy(service.config[field] as unknown[]),
|
|
||||||
);
|
|
||||||
if (!eq) {
|
if (!eq) {
|
||||||
differentArrayFields.push(field);
|
differentArrayFields.push(field);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user