@@ -6,6 +6,7 @@ import { BFLITE_TYPES_MAP, DEFAULT_GROUP_VALUES, BFLITE_URIS } from '@common/con
66
77export class SimpleLookupUserValueService extends UserValueType implements IUserValueType {
88 private uri ?: string ;
9+ private groupUri ?: string ;
910 private propertyUri ?: string ;
1011 private loadedData ?: MultiselectOption [ ] ;
1112 private contents ?: UserValueContents [ ] ;
@@ -19,6 +20,7 @@ export class SimpleLookupUserValueService extends UserValueType implements IUser
1920
2021 async generate ( { data, uri, uuid, uriSelector, type, propertyUri, groupUri, fieldUri } : UserValueDTO ) {
2122 this . uri = uri ;
23+ this . groupUri = groupUri ;
2224 this . propertyUri = propertyUri ;
2325 const cachedData = this . getCachedData ( ) ;
2426
@@ -110,11 +112,6 @@ export class SimpleLookupUserValueService extends UserValueType implements IUser
110112 type ?: AdvancedFieldType ;
111113 fieldUri ?: string ;
112114 } ) {
113- console . log ( '====================================' ) ;
114- console . log ( 'BFLITE_TYPES_MAP' , BFLITE_TYPES_MAP ) ;
115- console . log ( 'groupUri' , groupUri ) ;
116- console . log ( '====================================' ) ;
117-
118115 const typesMap = ( BFLITE_TYPES_MAP as FieldTypeMap ) [ groupUri as string ] ;
119116 const mappedUri =
120117 typesMap && itemUri
@@ -162,7 +159,7 @@ export class SimpleLookupUserValueService extends UserValueType implements IUser
162159 if ( ! response ) return ;
163160
164161 const formattedLookupData = formatLookupOptions ( response , this . uri ) ;
165- const filteredLookupData = filterLookupOptionsByMappedValue ( formattedLookupData , this . propertyUri ) ;
162+ const filteredLookupData = filterLookupOptionsByMappedValue ( formattedLookupData , this . propertyUri , this . groupUri ) ;
166163
167164 this . loadedData = filteredLookupData ?. toSorted ( alphabeticSortLabel ) ;
168165
0 commit comments