File tree Expand file tree Collapse file tree 1 file changed +13
-10
lines changed
src/components/ApplicationGroup Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -204,16 +204,19 @@ export default function AppGroupDetailsRoute({ isSuperAdmin }: AppGroupAdminType
204
204
setAppGroupListData ( result )
205
205
setDescription ( result . description )
206
206
if ( result . apps ?. length ) {
207
- setAppListOptions (
208
- result . apps
209
- . map ( ( app ) : OptionType => {
210
- return {
211
- value : `${ app . appId } ` ,
212
- label : app . appName ,
213
- }
214
- } )
215
- . sort ( sortOptionsByLabel ) ,
216
- )
207
+ const _appListOptions = result . apps
208
+ . map ( ( app ) : OptionType => {
209
+ return {
210
+ value : `${ app . appId } ` ,
211
+ label : app . appName ,
212
+ }
213
+ } )
214
+ . sort ( sortOptionsByLabel )
215
+
216
+ setAppListOptions ( _appListOptions )
217
+ if ( selectedGroupFilter . length ) {
218
+ setSelectedAppList ( _appListOptions . filter ( ( app ) => selectedGroupFilter [ 0 ] . appIds . includes ( + app . value ) ) )
219
+ }
217
220
}
218
221
setAppListLoading ( false )
219
222
}
You can’t perform that action at this time.
0 commit comments