Skip to content

JS error when loading more lines in diff view #30141

Closed
@M393

Description

@M393

Description

This error happens when clicking multiple times in a row on the load-more-lines button:

repo-code.js:195 Uncaught (in promise) DOMException: Failed to set the 'outerHTML' property on 'Element': This element has no parent node.
    at http://vmlinux03data:3000/assets/js/index.js?v=1.21.10:101:15689
    at Generator.next (<anonymous>)
    at u (http://vmlinux03data:3000/assets/js/index.js?v=1.21.10:101:12477)

Url path: /[org]/[project]/commit/[commit-hash]

Gitea Version

1.21.10

Can you reproduce the bug on the Gitea demo site?

No.
Looks like the button gets disabled while loading more text with 1.22, so could not reproduce it there.

Log Gist

No response

Screenshots

image

Git Version

2.20.1

Operating System

Debian 10

How are you running Gitea?

Downloaded gitea-1.21.10-linux-amd64 from release page

Database

MySQL/MariaDB

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions