Fix select2 empty list bug
The reason for the empty list was that no default value was set for apiURL and the variable was not globally available.
The reason for the empty list was that no default value was set for apiURL and the variable was not globally available.