Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
5414a311
Commit
5414a311
authored
May 21, 2019
by
Marcus Efraimsson
Committed by
David
May 21, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
explore: fix null checks (#17191)
parent
3b35e9d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
public/app/features/explore/Logs.tsx
+4
-2
No files found.
public/app/features/explore/Logs.tsx
View file @
5414a311
...
...
@@ -175,7 +175,7 @@ export default class Logs extends PureComponent<Props, State> {
const
hasLabel
=
hasData
&&
dedupedData
.
hasUniqueLabels
;
const
dedupCount
=
dedupedData
.
rows
.
reduce
((
sum
,
row
)
=>
sum
+
row
.
duplicates
,
0
);
const
showDuplicates
=
dedupStrategy
!==
LogsDedupStrategy
.
none
&&
dedupCount
>
0
;
const
meta
=
[...
data
.
meta
];
const
meta
=
data
.
meta
?
[...
data
.
meta
]
:
[
];
if
(
dedupStrategy
!==
LogsDedupStrategy
.
none
)
{
meta
.
push
({
...
...
@@ -193,7 +193,9 @@ export default class Logs extends PureComponent<Props, State> {
// React profiler becomes unusable if we pass all rows to all rows and their labels, using getter instead
const
getRows
=
()
=>
processedRows
;
const
timeSeries
=
data
.
series
.
map
(
series
=>
new
TimeSeries
(
series
));
const
timeSeries
=
data
.
series
?
data
.
series
.
map
(
series
=>
new
TimeSeries
(
series
))
:
[
new
TimeSeries
({
datapoints
:
[]
})];
const
absRange
=
{
from
:
range
.
from
.
valueOf
(),
to
:
range
.
to
.
valueOf
(),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment