Fixed changing endpoint not to clear org and space from config
[#58912264]