Fix photos not working on iOS
Previous behaviour
Steps to reproduce:
- Build on iOS
- Open photos page
- JS error
New behaviour
Steps to validate that it works:
- Build on iOS
- Open photos page
- Photos page opens correctly and albums are loaded
This will create a new commit in order to revert the existing changes.