Explorar o código

fixed dashboard date filter

= %!s(int64=4) %!d(string=hai) anos
pai
achega
df0cd02753
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      resources/views/app/dashboard.blade.php

+ 1 - 1
resources/views/app/dashboard.blade.php

@@ -254,7 +254,7 @@
                     updateNumEventsForDate: function() {
                         this.numEventsForDate = 0;
                         for (let i = 0; i < this.events.length; i++) {
-                            if(this.events[i].dateYMD === this.selectedDate &&
+                            if(this.events[i].raw_date === this.selectedDate &&
                                 (this.filterStatus === '' || this.filterStatus === this.events[i].status)) {
                                 this.numEventsForDate++;
                             }