Skip to content

Commit

Permalink
Merge branch 'main' into feat/vendure-3.1.1-update
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnvdbrug authored Dec 20, 2024
2 parents b94b392 + cfdcb87 commit 11bca75
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion packages/vendure-plugin-facet-suggestions/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# 1.2.0 (2024-12-19)
# 1.2.0 (2024-12-20)

- Update Vendure to 3.1.1

# 1.1.2 (2024-12-20)

- Fix to correctly save assets with Vendure V3.1

# 1.1.1 (2024-08-04)

- Update compatibility range (#480)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,18 +90,19 @@ export class SuggestedFacetsComponent implements CustomDetailComponent, OnInit {
facetValueIds: unique([...currentFacetValueIds, facetValue.id]),
});
productGroup.markAsDirty();
productGroup.controls.facetValueIds.markAsDirty();
}

removeFacetValue(facetValue: FacetValue) {
const productGroup = this.getProductFormGroup();
const currentFacetValueIds: string[] = productGroup.value.facetValueIds;
console.log('productGroup', facetValue);
productGroup.patchValue({
facetValueIds: unique([
...currentFacetValueIds.filter((id) => id !== facetValue.id),
]),
});
productGroup.markAsDirty();
productGroup.controls.facetValueIds.markAsDirty();
}

private getProductFormGroup(): FormGroup {
Expand Down

0 comments on commit 11bca75

Please sign in to comment.