You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2017/10/13 13:58:00 UTC
[whimsy] branch master updated: only load and cache successful
responses
This is an automated email from the ASF dual-hosted git repository.
rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new 5067f84 only load and cache successful responses
5067f84 is described below
commit 5067f84667e111bed6c0ef31802aed480aced9da
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Fri Oct 13 09:57:44 2017 -0400
only load and cache successful responses
---
www/board/agenda/views/models/agenda.js.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/www/board/agenda/views/models/agenda.js.rb b/www/board/agenda/views/models/agenda.js.rb
index c01f9a5..7cbc6f1 100644
--- a/www/board/agenda/views/models/agenda.js.rb
+++ b/www/board/agenda/views/models/agenda.js.rb
@@ -83,7 +83,7 @@ class Agenda
# perform fetch
fetch(request).then do |response|
- if response
+ if response and response.ok
loaded = true
# load response into the agenda
--
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <co...@whimsical.apache.org>'].