Skip to content

Commit c84e7dd

Browse files
committed
Fixed the issue of the default assignment of the attributes
1 parent af0aa65 commit c84e7dd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/app/modules/detailRoute/controllers/detail_route_controller.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ class DetailRouteController extends GetxController {
3434
void setAttribute(String name, dynamic newValue) {
3535
modify.set(name, newValue);
3636
onEdit.value = true;
37+
if(name == 'start'){
38+
debugPrint('Start Value Changed to $newValue');
39+
startValue.value = newValue;
40+
}
3741
initValues();
3842
}
3943

@@ -82,7 +86,7 @@ class DetailRouteController extends GetxController {
8286
statusValue.value = modify.draft.status;
8387
entryValue.value = modify.draft.entry;
8488
modifiedValue.value = modify.draft.modified;
85-
startValue.value = modify.draft.start;
89+
startValue.value ??= null;
8690
endValue.value = modify.draft.end;
8791
dueValue.value = modify.draft.due;
8892
waitValue.value = modify.draft.wait;

0 commit comments

Comments
 (0)