hotfix workerhours

This commit is contained in:
Carlos Satorres 2023-11-22 18:35:14 +01:00
parent 1a66987cd0
commit 6b07ee4eb1
1 changed files with 3 additions and 5 deletions

View File

@ -111,10 +111,8 @@ class Controller extends Section {
dayIndex.setDate(dayIndex.getDate() + 1);
}
if (this.worker) {
this.fetchHours();
this.getWeekData();
}
this.fetchHours();
this.getWeekData();
}
set weekTotalHours(totalHours) {
@ -404,7 +402,7 @@ class Controller extends Section {
});
}
changeState(state, reason) {
state(state, reason) {
this.state = state;
this.reason = reason;
this.repaint();