mirror of
https://github.com/fleetdm/fleet
synced 2026-04-25 07:27:33 +00:00
12 lines
311 B
JavaScript
12 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 };
|