Problem/Motivation
Layout selector in "UI elements" tab filters layouts by category name "Search". But this string is translatable, so when the page is loaded in other language than English, there is an error:
Call to a member function getLibrary() on bool in Drupal\search_api_decoupled_ui\Form\SearchApiEndpointUiElementsForm->form() (line 75 of /var/lib/tugboat/web/modules/contrib/search_api_decoupled/modules/ui/src/Form/SearchApiEndpointUiElementsForm.php).
It happens because no layouts with category "Search" could be found, because in German it is "Suche" and in other languages it is also different.
Proposed resolution
Filter the layouts but take into account that layout category is translatable.
Issue fork search_api_decoupled-3402105
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
a.dmitriiev commented