mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fixing since label
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
c099711953
commit
c962ea68ad
@ -22,9 +22,10 @@ interface Props extends PodLogSearchProps {
|
|||||||
|
|
||||||
export const PodLogControls = observer((props: Props) => {
|
export const PodLogControls = observer((props: Props) => {
|
||||||
if (!props.ready) return null;
|
if (!props.ready) return null;
|
||||||
const { tabData, save, reload, logs } = props;
|
const { tabData, save, reload, tabId, logs } = props;
|
||||||
const { selectedContainer, showTimestamps, previous } = tabData;
|
const { selectedContainer, showTimestamps, previous } = tabData;
|
||||||
const since = logs.length ? podLogsStore.getTimestamps(logs[0]) : null;
|
const rawLogs = podLogsStore.logs.get(tabId);
|
||||||
|
const since = rawLogs.length ? podLogsStore.getTimestamps(rawLogs[0]) : null;
|
||||||
const pod = new Pod(tabData.pod);
|
const pod = new Pod(tabData.pod);
|
||||||
|
|
||||||
const toggleTimestamps = () => {
|
const toggleTimestamps = () => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user