@@ -42,6 +42,7 @@ import Owner from 'src/types/Owner';
4242import {
4343 OwnerSelectLabel ,
4444 OWNER_TEXT_LABEL_PROP ,
45+ OWNER_EMAIL_PROP ,
4546 OWNER_OPTION_FILTER_PROPS ,
4647} from 'src/features/owners/OwnerSelectLabel' ;
4748// import { Form as AntdForm } from 'src/components/Form';
@@ -988,14 +989,15 @@ const AlertReportModal: FunctionComponent<AlertReportModalProps> = ({
988989 ( item : {
989990 value : number ;
990991 text : string ;
991- extra : { username ?: string } ;
992+ extra : { email ?: string } ;
992993 } ) => ( {
993994 value : item . value ,
994995 label : OwnerSelectLabel ( {
995996 name : item . text ,
996- username : item . extra ?. username ,
997+ email : item . extra ?. email ,
997998 } ) ,
998999 [ OWNER_TEXT_LABEL_PROP ] : item . text ,
1000+ [ OWNER_EMAIL_PROP ] : item . extra ?. email ?? '' ,
9991001 } ) ,
10001002 ) ,
10011003 totalCount : response . json . count ,
@@ -1865,9 +1867,10 @@ const AlertReportModal: FunctionComponent<AlertReportModalProps> = ({
18651867 value : currentUser . userId ,
18661868 label : OwnerSelectLabel ( {
18671869 name : `${ currentUser . firstName } ${ currentUser . lastName } ` ,
1868- username : currentUser . username ,
1870+ email : currentUser . email ,
18691871 } ) ,
18701872 [ OWNER_TEXT_LABEL_PROP ] : `${ currentUser . firstName } ${ currentUser . lastName } ` ,
1873+ [ OWNER_EMAIL_PROP ] : currentUser . email ?? '' ,
18711874 } ,
18721875 ]
18731876 : [ ] ,
@@ -1961,10 +1964,11 @@ const AlertReportModal: FunctionComponent<AlertReportModalProps> = ({
19611964 value : ( owner as MetaObject ) . value || owner . id ,
19621965 label : OwnerSelectLabel ( {
19631966 name : typeof ownerName === 'string' ? ownerName : '' ,
1964- username : ( owner as Owner ) . username ,
1967+ email : ( owner as Owner ) . email ,
19651968 } ) ,
19661969 [ OWNER_TEXT_LABEL_PROP ] :
19671970 typeof ownerName === 'string' ? ownerName : '' ,
1971+ [ OWNER_EMAIL_PROP ] : ( owner as Owner ) . email ?? '' ,
19681972 } ;
19691973 } ) ,
19701974 validator_config_json :
0 commit comments