mirror of
https://github.com/fleetdm/fleet
synced 2026-04-25 15:37:22 +00:00
13 lines
311 B
JavaScript
13 lines
311 B
JavaScript
|
|
import { isEqual } from 'lodash';
|
||
|
|
|
||
|
|
export const shouldShowModal = (moreInfoTarget, target) => {
|
||
|
|
if (!moreInfoTarget) return false;
|
||
|
|
|
||
|
|
return isEqual(
|
||
|
|
{ id: moreInfoTarget.id, type: moreInfoTarget.target_type },
|
||
|
|
{ id: target.id, type: target.target_type },
|
||
|
|
);
|
||
|
|
};
|
||
|
|
|
||
|
|
export default { shouldShowModal };
|