Browse Source

fix dropping of search results

Byron Jones 6 years ago
parent
commit
3ce4a69996
1 changed files with 2 additions and 3 deletions
  1. 2 3
      lib/LogBot/Web/Search.pm

+ 2 - 3
lib/LogBot/Web/Search.pm

@@ -264,9 +264,8 @@ sub render {
         }
 
         if ($current_channel ne $channel) {
-            $current_channel           = $channel;
-            $channel_events            = [];
-            $date_channels->{$channel} = $channel_events;
+            $current_channel = $channel;
+            $channel_events = $date_channels->{$channel} //= [];
         }
 
         preprocess_event($config, $event, $nick_hashes);