File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 90
90
const blocks = await this .resultService .update ();
91
91
this .updateFields (blocks);
92
92
} catch (e) {
93
+ console .log (e);
93
94
this .updateFields (this .resultService .getLastRegattaData ());
94
95
return false ;
95
96
}
Original file line number Diff line number Diff line change @@ -105,13 +105,13 @@ export class ResultService extends Service {
105
105
if ( count + block . crewCount > this . beginCount && count < this . endCount ) {
106
106
this . fields . push ( block ) ;
107
107
this . fields [ this . fields . length - 1 ] . forEach ( field => {
108
- if ( fieldCount + count > this . endCount && field . crewCount ) {
108
+ if ( ( fieldCount + count > this . endCount ) && field . crewCount ) {
109
109
field . crews . teams . length = 0 ;
110
110
}
111
111
if ( count < this . beginCount ) {
112
- if ( count + field . crewCount > this . beginCount ) {
112
+ if ( ( count + field . crewCount > this . beginCount ) && field . crewCount ) {
113
113
field . crews . teams . splice ( 0 , this . beginCount - count ) ;
114
- } else {
114
+ } else if ( field . crewCount ) {
115
115
field . crews . teams . length = 0 ;
116
116
field . crewCount = 0 ;
117
117
}
You can’t perform that action at this time.
0 commit comments