Closed westpaddy closed 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側で場合分けするのが妥当かなと思った
result
これだけだとまだ不十分だった・・・ 結果の詳細を隠す設定にしていると、resultプロパティの中身がnullになるケースがあるらしい
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側で場合分けするのが妥当かなと思った