Describe the bug
When opening a file attachment inside a Deck card, the card popup expands to fullscreen and freezes. The UI becomes unresponsive and the card cannot be closed without a page reload.
Steps to reproduce
Open a Deck board
Open a card that has a file attachment
Click on the attachment to open it
Card popup freezes and expands fullscreen
Expected behaviour
The file opens normally without the popup freezing.
Actual behaviour
The popup freezes. The following error appears in the Nextcloud log:
TypeError: OCA\Deck\Db\CardMapper::findBoardId(): Argument #1 ($id) must be of type int, string given, called in /var/www/html/nextcloud/apps/deck/lib/Sharing/DeckShareProvider.php on line 984
app: no app in context
Nextcloud version: 33
Deck version: 1.17.0 (latest available for NC 33)
Browser: [Firefox]
OS: macOS