Title: Fix Uninitialized Form Control Error in CpsSchedulerComponent
Problem
In the CpsSchedulerComponent, we encountered an issue where the form control was being accessed before it was initialized. This was happening when we set to 'Advanced'. The code was trying to set a value to the 'advanced' form control, but the form was not yet initialized, leading to a "Cannot read property of undefined" error.
Error
To reproduce the error, change the cron expression value in the SchedulerPageComponent
Title: Fix Uninitialized Form Control Error in CpsSchedulerComponent
Problem
In the
CpsSchedulerComponent
, we encountered an issue where the form control was being accessed before it was initialized. This was happening when we set to 'Advanced'. The code was trying to set a value to the 'advanced' form control, but the form was not yet initialized, leading to a "Cannot read property of undefined" error.Error
To reproduce the error, change the cron expression value in the![image](https://github.com/AbsaOSS/cps-shared-ui/assets/107909974/e9b389c2-6974-4a1c-a084-8e41b64f38b6)
SchedulerPageComponent