Skip to content

Commit 69a52d4

Browse files
authored
Merge pull request #50 from Proteus-Eretes/beamer_opt
FIxes
2 parents df40866 + 02d5902 commit 69a52d4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/components/BlockPanel.vue

+1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
const blocks = await this.resultService.update();
9191
this.updateFields(blocks);
9292
} catch (e) {
93+
console.log(e);
9394
this.updateFields(this.resultService.getLastRegattaData());
9495
return false;
9596
}

src/services/ResultService.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,13 @@ export class ResultService extends Service {
105105
if (count + block.crewCount > this.beginCount && count < this.endCount) {
106106
this.fields.push(block);
107107
this.fields[this.fields.length - 1].forEach(field => {
108-
if (fieldCount + count > this.endCount && field.crewCount) {
108+
if ((fieldCount + count > this.endCount) && field.crewCount) {
109109
field.crews.teams.length = 0;
110110
}
111111
if (count < this.beginCount) {
112-
if (count + field.crewCount > this.beginCount) {
112+
if ((count + field.crewCount > this.beginCount) && field.crewCount) {
113113
field.crews.teams.splice(0, this.beginCount - count);
114-
} else {
114+
} else if (field.crewCount) {
115115
field.crews.teams.length = 0;
116116
field.crewCount = 0;
117117
}

0 commit comments

Comments
 (0)