Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: equality check on feature strategy (#2145)
fix: add ability to format objects to perform equality checks on
- Loading branch information
1 parent
9473ffd
commit c52c6c4
Showing
4 changed files
with
33 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
frontend/src/component/feature/FeatureStrategy/featureStrategy.utils.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { IFeatureToggle } from 'interfaces/featureToggle'; | ||
|
||
export const comparisonModerator = (data: IFeatureToggle) => { | ||
const tempData = { ...data }; | ||
delete tempData.lastSeenAt; | ||
|
||
return tempData; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters