Because the "service identifier" node on the Digital Resource graph is a string, and not a URL, it's keyed on "en". That fails assumptions like this that the active language always has a stored value:
To reproduce:
Enable the language switcher
Sample Taking > Image Step
Switch the language away from english:
Result: page freeze
knockout-latest.js:20 Uncaught TypeError: Cannot read properties of undefined (reading 'value')
at new viewModel (sample-taking-sample-location-step.js:30:139)
...
Because the "service identifier" node on the Digital Resource graph is a string, and not a URL, it's keyed on
"en"
. That fails assumptions like this that the active language always has a stored value:https://github.com/archesproject/arches-for-science/blob/600c7e0516ff894008826ef78297e7701e53040f/afs/media/js/views/components/workflows/sample-taking-workflow/sample-taking-sample-location-step.js#L31
To reproduce: Enable the language switcher Sample Taking > Image Step Switch the language away from english:
Result: page freeze
Should we make this node a URL?