Skip to content

Crash in photoswipe #23252

@dcardin

Description

@dcardin

Description:

Photoswipe doesn't appear due to a crash (browser side)

Steps to reproduce:

  1. open the files explorer
  2. click on a image
  3. the picture doesn't show up

Expected behavior:

That photoswipe shows images

Actual behavior:

Nothing, you also need to reload the browser page

Server Setup Information:

open.rocket.chat

Client Setup Information

Browser: chrome (93) / firefox (92) doesn't matter which one is used
MacOS 12 beta

Additional context

Relevant logs:

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'x')
at pe (/node_modules/photoswipe/dist/photoswipe.js:5)
at $t (/node_modules/photoswipe/dist/photoswipe.js:5)
at Object.setContent (/node_modules/photoswipe/dist/photoswipe.js:5)
at Object.init (/node_modules/photoswipe/dist/photoswipe.js:5)
at n (225caa91ce7ded4705764b05d572f7f673311588.js?meteor_js_resource=true:971)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions