SoftwareFoundationGroupAtKyotoU / automata

Other
3 stars 10 forks source link

Fix the result view continue showing a loading image #414

Closed westpaddy closed 7 years ago

westpaddy commented 7 years ago

The result view has been showing a loading image even if a server returns a response. This is because the view read an undefined property of the response and failed.

This fix add check whether the property exists before reading.

たぶんサーバーのレスポンスresultプロパティがないのは正常な動作な気がするのでjs側で場合分けするのが妥当かなと思った

westpaddy commented 7 years ago

これだけだとまだ不十分だった・・・ 結果の詳細を隠す設定にしていると、resultプロパティの中身がnullになるケースがあるらしい