Skip to content

Commit

Permalink
fix(admin-ui): Fix facet detail form losing input data
Browse files Browse the repository at this point in the history
Closes #353
  • Loading branch information
michaelbromley committed Jun 2, 2020
1 parent 768c838 commit 2430f30
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ export class FacetDetailComponent extends BaseDetailComponent<FacetWithValues.Fr

const currentValuesFormArray = this.detailForm.get('values') as FormArray;
currentValuesFormArray.clear();
this.values = facet.values;
this.values = [...facet.values];
facet.values.forEach((value, i) => {
const valueTranslation =
value.translations && value.translations.find((t) => t.languageCode === languageCode);
Expand Down

0 comments on commit 2430f30

Please sign in to comment.