Merge branch '21128-toolbar-context-menu'
[arvados-workbench2.git] / src / store / process-logs-panel / process-logs-panel.ts
index 0ca5d679c9caa14b0e2c2fe8847d56d57f61de29..531d3723c63fb93e97eb3b7e81a9aaf5bfdae186 100644 (file)
@@ -12,11 +12,11 @@ export interface ProcessLogsPanel {
 }
 
 export interface ProcessLogs {
-    [logType: string]: string[];
+    [logType: string]: {lastByte: number | undefined, contents: string[]};
 }
 
-export const getProcessPanelLogs = ({ selectedFilter, logs }: ProcessLogsPanel) => {
-    return logs[selectedFilter];
+export const getProcessPanelLogs = ({ selectedFilter, logs }: ProcessLogsPanel): string[] => {
+    return logs[selectedFilter]?.contents || [];
 };
 
 export const getProcessLogsPanelCurrentUuid = (router: RouterState) => {