File tree 3 files changed +3
-3
lines changed
apps/profiles/src/member-profile/links/ModifyMemberLinksModal
libs/ui/lib/components/form/form-groups/form-input/input-text
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,6 @@ const LinkForm: FC<LinkFormProps> = props => {
114
114
type = 'text'
115
115
onChange = { handleURLChange }
116
116
value = { selectedLinkURL }
117
- autoFocus
118
117
/>
119
118
< Button
120
119
className = { styles . button }
Original file line number Diff line number Diff line change @@ -34,7 +34,9 @@ const ModifyMemberLinksModal: FC<ModifyMemberLinksModalProps> = (props: ModifyMe
34
34
35
35
const [ isSaving , setIsSaving ] = useState < boolean > ( false )
36
36
const [ hasChanges , setHasChanges ] = useState < boolean > ( false )
37
- const [ currentMemberLinks , setCurrentMemberLinks ] = useState < UserTrait [ ] | undefined > ( props . memberLinks ?? [ { } ] )
37
+ const [ currentMemberLinks , setCurrentMemberLinks ] = useState < UserTrait [ ] > (
38
+ props . memberLinks ?. length ? props . memberLinks : [ { } ] ,
39
+ )
38
40
39
41
const hasNewInput = useMemo ( ( ) => (
40
42
! ! currentMemberLinks ?. find ( d => ( ! d . name && ! d . url ) )
Original file line number Diff line number Diff line change @@ -54,7 +54,6 @@ const InputText: FC<InputTextProps> = (props: InputTextProps) => {
54
54
spellCheck = { ! ! props . spellCheck }
55
55
tabIndex = { props . tabIndex }
56
56
type = { props . type || 'text' }
57
- autoFocus = { props . autoFocus }
58
57
/>
59
58
)
60
59
You can’t perform that action at this time.
0 commit comments