Soham Parekh 3 лет назад
Родитель
Сommit
d07fbe6d59

+ 0 - 1
dashboard/src/main/home/cluster-dashboard/expanded-chart/logs-section/LogsSection.tsx

@@ -468,7 +468,6 @@ const SearchRow = styled.div`
   background: #26292e;
   border-radius: 5px;
   border: 1px solid #aaaabb33;
-  display: none;
 `;
 
 const SearchRowWrapper = styled(SearchRow)`

+ 5 - 0
dashboard/src/main/home/cluster-dashboard/expanded-chart/logs-section/useAgentLogs.ts

@@ -171,6 +171,11 @@ export const useLogs = (
         console.log("Opened websocket:", websocketKey);
       },
       onmessage: (evt: MessageEvent) => {
+        // Nothing to do here
+        if (!evt.data || typeof evt.data !== "string") {
+          return;
+        }
+
         const newLogs = parseLogs(
           evt?.data?.split("}\n").map((line: string) => line + "}")
         );