Skip to content

Commit 591ecb3

Browse files
authored
fix(frontend): prevent error when inputRef is undefined (#7649)
1 parent fef753d commit 591ecb3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frontend/web/components/pages/CreateOrganisationPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const CreateOrganisationPage: React.FC = () => {
6666
useEffect(() => {
6767
API.trackPage(Constants.pages.CREATE_ORGANISATION)
6868
focusTimeout.current = setTimeout(() => {
69-
inputRef.current?.focus()
69+
inputRef.current?.focus?.()
7070
focusTimeout.current = null
7171
}, 500)
7272

0 commit comments

Comments
 (0)