File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/containers/admin-dashBoard Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -506,7 +506,7 @@ export default function TtlsPage() {
506506 < p >
507507 < i >
508508 { ' ' }
509- { traineeDetails . team
509+ { traineeDetails . team !== undefined
510510 ? traineeDetails . team . name
511511 : 'Not assigned' }
512512 </ i >
@@ -751,7 +751,7 @@ export default function TtlsPage() {
751751 // className="w-[30%] md:w-1/4 text-sm font-sans"
752752 onClick = { ( ) => {
753753 if ( deleteEmail ) {
754- setButtonLoading ( true ) ; // Set loading to true before the mutation
754+ setButtonLoading ( true ) ; // Set loading to true before the mutation
755755 undropTTLUser ( {
756756 variables : {
757757 email : deleteEmail ,
@@ -761,6 +761,7 @@ export default function TtlsPage() {
761761 toast . success ( 'TTL Undropped Successfully' ) ;
762762 refetch ( ) ; // Refetch data after mutation
763763 undropTTLMod ( ) ;
764+
764765 } )
765766 . catch ( ( error ) => {
766767 toast . error ( error . message || 'An error occurred' ) ; // Use error.message for better error handling
You can’t perform that action at this time.
0 commit comments