whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] branch master updated: don't attempt to fetch minutes when timestamp is undefined
Date Sun, 02 Jun 2019 00:44:14 GMT
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 cb7563e  don't attempt to fetch minutes when timestamp is undefined
cb7563e is described below

commit cb7563e8d74453cf54f4b114703f6a39b5532f32
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Sat Jun 1 20:43:42 2019 -0400

    don't attempt to fetch minutes when timestamp is undefined
---
 www/board/agenda/views/pages/report.js.rb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/www/board/agenda/views/pages/report.js.rb b/www/board/agenda/views/pages/report.js.rb
index 751dcb5..a4672d8 100644
--- a/www/board/agenda/views/pages/report.js.rb
+++ b/www/board/agenda/views/pages/report.js.rb
@@ -79,7 +79,10 @@ class Report < Vue
       # if draft is available, fetch minutes for display
       date = @@item.text[/board_minutes_(\d+_\d+_\d+)\.txt/, 1]
 
-      if date and not defined? @@item.minutes and defined? XMLHttpRequest
+      if
+        date and @@item.mtime and not defined? @@item.minutes and
+        defined? XMLHttpRequest
+      then
         Vue.set @@item, 'minutes', ''
         retrieve "minutes/#{date}?#{@@item.mtime}", :text do |minutes|
           @@item.minutes = minutes


Mime
View raw message