When selecting Server Connect Action, wrong id gets inserted

When I select an Action from Server Connect element, the id “api” instead of the corresponding Server Connect ID is inserted.
When I replace it with the correct id in the source code Server Connect Action works correctly.
image

Hello, what’s the exact server action ID used in the code?

The id of the server action is “logoutapi”
The actions gets selected in a button element with a parent div element with id “logout”
image
So for me it seems, the parent id gets sliced from the server action id.
I tried:
logoutapi (actual Server action id) -> api (gets inserted)
logoutapi2 -> api2
loginapi -> loginapi