Opening a *.flatpakref file in Software and deleting the file causes details page to break for other sources of this app
Fedora 39, gnome-software-45.1-1.fc39.x86_64.
Opening a *.flatpakref file from Flathub temporarily adds it as a source and sets it as default one:
The problem is that the source persists even after closing the window, opening Software, searching for the same app page (available from regular Flathub remote or RPM/DEB) and opening the result. But this is still a minor issue. The real problem is that deleting the *.flatpakref file causes the details page to not load anymore for this app. See the attached screencast:
Here is a full verbose GS log.