Skip to content

Commit

Permalink
Merge pull request DSpace#2574 from mahnkong/main
Browse files Browse the repository at this point in the history
Support type-bind of elements based on repeatable list type-bound element (CHECKBOX_GROUP)
  • Loading branch information
tdonohue authored Nov 9, 2023
2 parents 642d577 + 09aaa46 commit 8a651ef
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ 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(
const updateSubject = (relatedModel.type === 'CHECKBOX_GROUP' ? relatedModel.valueUpdates : relatedModel.valueChanges);
const valueChanges = updateSubject.pipe(
startWith(initValue)
);

Expand Down

0 comments on commit 8a651ef

Please sign in to comment.