Skip to content

Commit

Permalink
Support type-bind of elements based on repeatable list type-bound ele…
Browse files Browse the repository at this point in the history
…ment (CHECKBOX_GROUP)
  • Loading branch information
Andreas Mahnke committed Oct 25, 2023
1 parent 6affb06 commit 55bbc1b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,10 @@ export class DsDynamicTypeBindRelationService {
const initValue = (hasNoValue(relatedModel.value) || typeof relatedModel.value === 'string') ? relatedModel.value :
(Array.isArray(relatedModel.value) ? relatedModel.value : relatedModel.value.value);

const valueChanges = relatedModel.valueChanges.pipe(
console.log(relatedModel)

Check failure on line 186 in src/app/shared/form/builder/ds-dynamic-form-ui/ds-dynamic-type-bind-relation.service.ts

View workflow job for this annotation

GitHub Actions / tests (16.x)

Missing semicolon

Check failure on line 186 in src/app/shared/form/builder/ds-dynamic-form-ui/ds-dynamic-type-bind-relation.service.ts

View workflow job for this annotation

GitHub Actions / tests (18.x)

Missing semicolon

const updateSubject = (relatedModel.type === 'CHECKBOX_GROUP' ? relatedModel.valueUpdates : relatedModel.valueChanges);
const valueChanges = updateSubject.pipe(
startWith(initValue)
);

Expand Down

0 comments on commit 55bbc1b

Please sign in to comment.