mirror of
https://github.com/Unleash/unleash.git
synced 2025-10-18 11:14:57 +02:00
Fixes a problem with demo saying you've got outdated data when someone else has worked with ya
18 lines
431 B
TypeScript
18 lines
431 B
TypeScript
import type { IFeatureToggle } from 'interfaces/featureToggle';
|
|
import { deepOmit, type DeepOmit } from '../../../utils/deepOmit';
|
|
|
|
export const comparisonModerator = (
|
|
data: IFeatureToggle,
|
|
): DeepOmit<IFeatureToggle, keyof IFeatureToggle> => {
|
|
const tempData = { ...data };
|
|
|
|
return deepOmit(
|
|
tempData,
|
|
'lastSeenAt',
|
|
'yes',
|
|
'no',
|
|
'lifecycle',
|
|
'collaborators',
|
|
);
|
|
};
|