It is currently possible to set the port ID to a number.
element.addPort({ port: 123 });
However, the user cannot connect to the port through the user interface. This is because internally we are looking for a port with an id as the string "123", which could not be found.
This PR ensures that the link connection works as expected and that the port ID stored in the link model is of the correct type.
Description
It is currently possible to set the port ID to a number.
However, the user cannot connect to the port through the user interface. This is because internally we are looking for a port with an id as the string "123", which could not be found.
This PR ensures that the link connection works as expected and that the port ID stored in the link model is of the correct type.