fix: 🐛 host set reconciliation on targets

This commit is contained in:
Randall Morey committed 2021-09-21 16:58:25 -04:00
1 parent 614b98b8fb
commit c7c01dc35e
1 file changed
+1 -1
@@ -29,7 +29,7 @@ export default class FormTargetAddHostSetsComponent extends Component {
get filteredHostSets() {
// Get IDs for host sets already added to the current target
const alreadyAddedHostSetIDs = this.args.model.host_sets.map(
({ host_set_id }) => host_set_id
({ host_source_id }) => host_source_id
);
const notAddedHostSets = this.args.hostSets.filter(
({ id }) => !alreadyAddedHostSetIDs.includes(id)