mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-02-20 17:52:51 +00:00
Take order into account when comparing service config arrays
Change-type: patch Closes: #1060 Signed-off-by: Cameron Diver <cameron@balena.io>
This commit is contained in:
parent
587e7fa859
commit
86e8a85640
@ -689,10 +689,7 @@ export class Service {
|
||||
sameConfig =
|
||||
sameConfig &&
|
||||
_.every(Service.configArrayFields, (field: keyof ServiceConfig) => {
|
||||
const eq = _.isEqual(
|
||||
_.sortBy(this.config[field] as unknown[]),
|
||||
_.sortBy(service.config[field] as unknown[]),
|
||||
);
|
||||
const eq = _.isEqual(this.config[field], service.config[field]);
|
||||
if (!eq) {
|
||||
differentArrayFields.push(field);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user