Skip to content

Commit

Permalink
fix(netflix): use angular.equals to compare fp scopes
Browse files Browse the repository at this point in the history
  • Loading branch information
anotherchrisberry committed Apr 13, 2017
1 parent ac2e402 commit 0f945c9
Showing 1 changed file with 7 additions and 6 deletions.
@@ -1,6 +1,7 @@
import {isEqual, omit} from 'lodash';
import {Scope} from '../domain/scope.domain';
import {Property} from '../domain/property.domain';
import {omit} from 'lodash';
import {equals} from 'angular';
import {Scope} from './scope.domain';
import {Property} from './property.domain';
import {PropertyPipeline} from './propertyPipeline.domain';
import {PropertyStrategy} from './propertyStrategy.domain';
import {PropertyCommandType} from './propertyCommandType.enum';
Expand Down Expand Up @@ -72,9 +73,9 @@ export class PropertyCommand {

public isMoveToNewScope(): boolean {
if (this.scopes.length > 0 && this.originalScope) {
return !isEqual(
omit(this.scopes[0], ['instanceCounts']),
omit(this.originalScope, ['instanceCounts'])
return !equals(
omit(this.scopes[0], ['instanceCounts', 'env']),
omit(this.originalScope, ['instanceCounts', 'env'])
);
}
return false;
Expand Down

0 comments on commit 0f945c9

Please sign in to comment.