Got the getData if/else working transition is not working