From b382b6890b00970fd9e0b49ca70b27020ff5b151 Mon Sep 17 00:00:00 2001 From: soraefir Date: Sun, 25 Jun 2023 23:14:34 +0200 Subject: [PATCH] Retro compatibility --- public/js/main.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/js/main.js b/public/js/main.js index ea9d015..79f8e63 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -271,7 +271,11 @@ const app = new Vue({ e.dateRange[0]= new Date(e.dateRange[0]); e.dateRange[1]= new Date(e.dateRange[1]); } + e.flight = undefined; + e.step_title = e.step_title || []; } + + }); this.debounceSave = _.debounce(this.save_data, 500) this.debounceSearch = {"hotel":_.debounce((q)=>{this.querying.hotel=true;this.search_nominatim(q,(r)=>(r.type=="hotel" || r.type=="hostel")).then((r)=>{this.querying.hotel=false});}, 500),