fix(layout): Adding/Editing credentials fixes.
fix(layout): Adding/Editing credentials fixes.

 1) If added platform is the only one, it is not set to be the active one
 2) Edit credentials not working

rabix/composer,rabix/cottontail-frontend,rabix/cottontail-frontend,rabix/cottontail-frontend,marijanlekic/cottontail-frontend,marijanlekic/cottontail-frontend,rabix/composer,rabix/composer,marijanlekic/cottontail-frontend,rabix/cottontail-frontend