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
12a3edd6
Commit
12a3edd6
authored
Jan 08, 2019
by
Johannes Schill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: Clean up per PR feedback. Thanks @dprokop
parent
f428db28
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
15 deletions
+8
-15
public/app/core/components/ErrorBoundary/ErrorBoundary.tsx
+8
-11
public/app/plugins/panel/graph2/GraphPanel.tsx
+0
-4
No files found.
public/app/core/components/ErrorBoundary/ErrorBoundary.tsx
View file @
12a3edd6
import
React
,
{
Component
}
from
'react'
;
import
{
Component
}
from
'react'
;
interface
ErrorInfo
{
componentStack
:
string
;
...
...
@@ -19,10 +19,10 @@ interface State {
}
class
ErrorBoundary
extends
Component
<
Props
,
State
>
{
constructor
(
props
)
{
super
(
props
);
this
.
state
=
{
error
:
null
,
errorInfo
:
null
};
}
readonly
state
:
State
=
{
error
:
null
,
errorInfo
:
null
,
}
;
componentDidCatch
(
error
:
Error
,
errorInfo
:
ErrorInfo
)
{
this
.
setState
({
...
...
@@ -32,15 +32,12 @@ class ErrorBoundary extends Component<Props, State> {
}
render
()
{
const
{
children
}
=
this
.
props
;
const
{
error
,
errorInfo
}
=
this
.
state
;
return
(
<>
{
this
.
props
.
children
({
return
children
({
error
,
errorInfo
,
})
}
</>
);
});
}
}
...
...
public/app/plugins/panel/graph2/GraphPanel.tsx
View file @
12a3edd6
...
...
@@ -10,10 +10,6 @@ import { Options } from './types';
interface
Props
extends
PanelProps
<
Options
>
{}
export
class
GraphPanel
extends
PureComponent
<
Props
>
{
constructor
(
props
:
Props
)
{
super
(
props
);
}
render
()
{
const
{
timeSeries
,
timeRange
,
width
,
height
}
=
this
.
props
;
const
{
showLines
,
showBars
,
showPoints
}
=
this
.
props
.
options
;
...
...
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