mirror of
https://github.com/ThisIsBenny/iOS-Widgets.git
synced 2025-06-06 13:37:41 +00:00
VRR: Fix issue with empty response
Signed-off-by: Benny Samir Hierl <bennysamir@posteo.de>
This commit is contained in:
parent
4df23b2ab8
commit
5a202b67fa
1 changed files with 5 additions and 3 deletions
|
@ -3,9 +3,11 @@
|
||||||
// icon-color: deep-green; icon-glyph: bus-alt;
|
// icon-color: deep-green; icon-glyph: bus-alt;
|
||||||
|
|
||||||
/**************
|
/**************
|
||||||
Version 1.2.1
|
Version 1.2.2
|
||||||
|
|
||||||
Changelog:
|
Changelog:
|
||||||
|
v1.2.2:
|
||||||
|
- Fix issue with empty response
|
||||||
v1.2.1:
|
v1.2.1:
|
||||||
- Fix issue with small widget where time will be not correct displayed in case that a delay will be displayed
|
- Fix issue with small widget where time will be not correct displayed in case that a delay will be displayed
|
||||||
v1.2.0:
|
v1.2.0:
|
||||||
|
@ -15,7 +17,6 @@ Changelog:
|
||||||
- Setup Wizard enhanced
|
- Setup Wizard enhanced
|
||||||
|
|
||||||
**************/
|
**************/
|
||||||
|
|
||||||
let transportTypes = [
|
let transportTypes = [
|
||||||
{
|
{
|
||||||
name: 'ICE/IC/EC',
|
name: 'ICE/IC/EC',
|
||||||
|
@ -93,7 +94,8 @@ async function fetchStationdata(Id, linesFilter, distance, transportCodes) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
let res = await req.loadJSON()
|
let res = await req.loadJSON()
|
||||||
return {departureData: res['departureData'], stationName: res['stationName']}
|
|
||||||
|
return {departureData: res['departureData'] || [], stationName: res['stationName']}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(req.response)
|
console.log(req.response)
|
||||||
console.log(e)
|
console.log(e)
|
||||||
|
|
Loading…
Add table
Reference in a new issue