Replace ??=, not supported by i18next-scanner
This commit is contained in:
parent
42d8b27266
commit
c122b31e73
3 changed files with 12 additions and 7 deletions
|
|
@ -513,7 +513,7 @@ BR.Routing = L.Routing.extend({
|
|||
_interpolateBeelines: function (serialBeelines, before, after) {
|
||||
let altStart = serialBeelines[0].getLatLngs()[0].alt;
|
||||
const altEnd = serialBeelines[serialBeelines.length - 1].getLatLngs()[1].alt ?? altStart;
|
||||
altStart ??= altEnd;
|
||||
altStart ?? (altStart = altEnd);
|
||||
|
||||
let serialDelta = 0;
|
||||
if (altStart != null && altEnd != null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue