Skip to content

JavaScript error: Uncaught TypeError: Cannot read properties of undefined (reading 'length') (https://xxx.xx/assets/js/index.js?v=1.20.0~dev-240-gd4f35bd681 @ 37:60918). Open browser console to see more details. #23657

Closed
@hiifong

Description

@hiifong
Member

Description

When i click on the authenticate ssh button, this js error is thrown

I can reproduce the bug on the gitea.com and try.gitea.io

Gitea Version

v1.20+

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

image
image

Git Version

No response

Operating System

No response

How are you running Gitea?

./gitea web

Database

None

Activity

wxiaoguang

wxiaoguang commented on Mar 23, 2023

@wxiaoguang
Contributor

Incorrect copy-paste code by #17743 , and it triggers a bug.

wxiaoguang

wxiaoguang commented on Mar 23, 2023

@wxiaoguang
Contributor

Will be fixed by #23660

hiifong

hiifong commented on Mar 23, 2023

@hiifong
MemberAuthor

Will be fixed by #23660

Thank you

added a commit that references this issue on Mar 23, 2023
378d6b8
added a commit that references this issue on Mar 24, 2023
780f71c
locked and limited conversation to collaborators on May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @wxiaoguang@hiifong

      Issue actions

        JavaScript error: Uncaught TypeError: Cannot read properties of undefined (reading 'length') (https://xxx.xx/assets/js/index.js?v=1.20.0~dev-240-gd4f35bd681 @ 37:60918). Open browser console to see more details. · Issue #23657 · go-gitea/gitea