Skip to content

Commit c665591

Browse files
authored
Merge pull request #4435 from c2corg/smart-origin/fix_max_nb_transfers
fix: Smart/Origin: no maximum number of transfers by default
2 parents 4f19baf + 700d034 commit c665591

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/views/document/utils/boxes/PlanATripSection.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -752,6 +752,10 @@ export default {
752752
canAccessReturnTab() {
753753
return this.outboundData.journeys.length > 0;
754754
},
755+
756+
maxNbTransfers() {
757+
return this.limitTransfers ? this.maxTransfers : -1;
758+
},
755759
},
756760
757761
async mounted() {
@@ -947,7 +951,7 @@ export default {
947951
walking_speed: 1.12,
948952
max_walking_duration_to_pt: 4464,
949953
min_nb_journeys: 3,
950-
max_nb_transfers: this.maxTransfers,
954+
max_nb_transfers: this.maxNbTransfers,
951955
}
952956
);
953957
@@ -1000,7 +1004,7 @@ export default {
10001004
walking_speed: 1.12,
10011005
max_walking_duration_to_pt: 4464,
10021006
min_nb_journeys: 3,
1003-
max_nb_transfers: this.maxTransfers,
1007+
max_nb_transfers: this.maxNbTransfers,
10041008
timeframe_duration: 86400,
10051009
}
10061010
);

0 commit comments

Comments
 (0)