@@ -115,23 +115,23 @@ public MonitoringAPController(Class<T> clazz) {
115115
116116 // Add comoboBox click listner
117117 aliasComboBox .valueProperty ().addListener ((options , oldValue , newValue ) -> {
118- if (oldValue == null ) {
118+ inquiryDatePicker .setDayCellFactory (picker -> new MonitoringHistoryDateCell (
119+ reportUsecase .getMonitoringHistoryDays (clazz , getSelectedAliasComboBoxItem ())));
120+ if (oldValue == null ) {
119121 syncTableData (newValue , 0 );
120122 } else {
121- runMonitoring ();
123+ runMonitoring ();
122124 }
123125 });
124126
125127 // Setting inquiry datepicker initial value
126128 inquiryDatePicker .setValue (LocalDate .now ().minusDays (0 ));
127- inquiryDatePicker .setDayCellFactory (picker -> new MonitoringHistoryDateCell (
128- reportUsecase .getMonitoringHistoryDays (clazz , getSelectedAliasComboBoxItem ())));
129129
130130 unitComboBox .getItems ().addAll (FileSize .values ());
131131 unitComboBox .getSelectionModel ().select (propService .getDefaultFileSizeUnit ());
132132 unitComboBox .valueProperty ().addListener ((observable , oldValue , newValue ) -> {
133- if (oldValue != null ) {
134- runMonitoring ();
133+ if (oldValue != null ) {
134+ runMonitoring ();
135135 }
136136 });
137137
@@ -149,11 +149,11 @@ public RoundingDigits fromString(String digits) {
149149 }
150150 });
151151 roundComboBox .valueProperty ().addListener ((observable , oldValue , newValue ) -> {
152- if (oldValue != null ) {
153- runMonitoring ();
152+ if (oldValue != null ) {
153+ runMonitoring ();
154154 }
155155 });
156-
156+
157157 // Set pagination property
158158 pagination .currentPageIndexProperty ().addListener ((observable , oldValue , newValue ) -> {
159159 String selected = aliasComboBox .getSelectionModel ().getSelectedItem ();
0 commit comments