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
19d27351
Unverified
Commit
19d27351
authored
Jul 01, 2020
by
Dominik Prokop
Committed by
GitHub
Jul 01, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix few null checks to make master green (#25965)
parent
bd27be13
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
4 deletions
+5
-4
public/app/plugins/datasource/graphite/configuration/ConfigEditor.tsx
+1
-1
public/app/plugins/datasource/loki/configuration/DebugSection.tsx
+2
-1
public/app/plugins/datasource/loki/datasource.ts
+1
-1
public/app/plugins/panel/singlestat/module.ts
+1
-1
No files found.
public/app/plugins/datasource/graphite/configuration/ConfigEditor.tsx
View file @
19d27351
...
...
@@ -86,7 +86,7 @@ export class ConfigEditor extends PureComponent<Props> {
label=
"Rollup indicator"
labelClass=
{
'width-10'
}
tooltip=
"Shows up as an info icon in panel headers when data is aggregated"
checked=
{
options
.
jsonData
.
rollupIndicatorEnabled
}
checked=
{
!!
options
.
jsonData
.
rollupIndicatorEnabled
}
onChange=
{
onUpdateDatasourceJsonDataOptionChecked
(
this
.
props
,
'rollupIndicatorEnabled'
)
}
/>
</
div
>
...
...
public/app/plugins/datasource/loki/configuration/DebugSection.tsx
View file @
19d27351
...
...
@@ -84,6 +84,7 @@ type DebugField = {
value
?:
string
;
href
?:
string
;
};
function
makeDebugFields
(
derivedFields
:
DerivedFieldConfig
[],
debugText
:
string
):
DebugField
[]
{
return
derivedFields
.
filter
(
field
=>
field
.
name
&&
field
.
matcherRegex
)
...
...
@@ -91,7 +92,7 @@ function makeDebugFields(derivedFields: DerivedFieldConfig[], debugText: string)
try
{
const
testMatch
=
debugText
.
match
(
field
.
matcherRegex
);
const
value
=
testMatch
&&
testMatch
[
1
];
let
link
:
LinkModel
<
Field
>
;
let
link
:
LinkModel
<
Field
>
=
null
;
if
(
field
.
url
&&
value
)
{
link
=
getFieldLinksForExplore
(
...
...
public/app/plugins/datasource/loki/datasource.ts
View file @
19d27351
...
...
@@ -518,7 +518,7 @@ export class LokiDatasource extends DataSourceApi<LokiQuery, LokiOptions> {
}
showContextToggle
=
(
row
?:
LogRowModel
)
=>
{
return
row
.
searchWords
&&
row
.
searchWords
.
length
>
0
;
return
row
&&
row
.
searchWords
&&
row
.
searchWords
.
length
>
0
;
};
throwUnless
=
(
err
:
any
,
condition
:
boolean
,
target
:
LokiQuery
)
=>
{
...
...
public/app/plugins/panel/singlestat/module.ts
View file @
19d27351
...
...
@@ -502,7 +502,7 @@ class SingleStatCtrl extends MetricsPanelCtrl {
function
addSparkline
()
{
const
data
:
ShowData
=
ctrl
.
data
;
const
width
=
elem
.
width
();
if
(
width
<
30
)
{
if
(
width
&&
width
<
30
)
{
// element has not gotten it's width yet
// delay sparkline render
setTimeout
(
addSparkline
,
30
);
...
...
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