File tree Expand file tree Collapse file tree 2 files changed +11
-10
lines changed
components/Record/RecordOverview Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -105,18 +105,19 @@ export default function RecordOverview() {
105
105
aRecord . endTime
106
106
) ;
107
107
108
- if ( res . length === 0 ) {
109
- for ( let i = 0 ; i < dayGapWithCurrentDate ; i ++ ) {
108
+ if ( dayGapWithCurrentDate >= 1 ) {
109
+ for (
110
+ let i = 0 ;
111
+ i < dayGapWithCurrentDate - ( res . length === 0 ? 0 : 1 ) ;
112
+ i ++
113
+ ) {
110
114
res . push ( 0 ) ;
111
115
}
116
+ res . push ( parseMSToMin ( aRecord . duration ) ) ;
117
+ } else {
118
+ res [ res . length - 1 ] += parseMSToMin ( aRecord . duration ) ;
112
119
}
113
120
114
- for ( let i = 0 ; i < dayGapWithCurrentDate ; i ++ ) {
115
- res . push ( 0 ) ;
116
- }
117
-
118
- res [ res . length - 1 ] += parseMSToMin ( aRecord . duration ) ;
119
-
120
121
currentDate = aRecord . endTime ;
121
122
} ) ;
122
123
Original file line number Diff line number Diff line change @@ -11,5 +11,5 @@ const nextConfig = {
11
11
basePath : isDevServer ? "/absproxy/3000" : "" ,
12
12
} ;
13
13
14
- // module.exports = withPWA(nextConfig);
15
- module . exports = nextConfig ;
14
+ module . exports = withPWA ( nextConfig ) ;
15
+ // module.exports = nextConfig;
You can’t perform that action at this time.
0 commit comments