Description
This issue was detected and handled before with some very rough around the edges solution. This was removed as part of:
https://gerrit.wikimedia.org/r/c/mediawiki/extensions/WikiLambda/+/886048
This doesn't really work properly. The check should be there to avoid showing Zids when the label hasn't been computed yet, but the check should be factorized and part of ZObjectSelector instead of being responsibility of the caller components.
Observed behavior:
- Sometimes when loading ZObjects that have references in defaut view and edit mode, the ZObjectSelector shows the selected Zid instead of showing the label.
Related issue:
https://phabricator.wikimedia.org/T328425
Devices and Design (URLs or screenshots, if applicable):
- Desktop: ...
- Small screens/mobile: ...
Completion checklist
- Before closing this task, review one by one the checklist available here: https://www.mediawiki.org/wiki/Abstract_Wikipedia_team/Definition_of_Done#Front-end_Task/Bug_Completion_Checklist