mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
Support type-bind of elements based on repeatable list type-bound element (CHECKBOX_GROUP)
This commit is contained in:
@@ -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)
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user