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
173375cb
Unverified
Commit
173375cb
authored
Feb 11, 2020
by
Ryan McKinley
Committed by
GitHub
Feb 11, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DataLinks: Avoid null exception in new edit mode (#22100)
parent
2a2b33bb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
packages/grafana-ui/src/components/FieldConfigs/links.tsx
+13
-12
No files found.
packages/grafana-ui/src/components/FieldConfigs/links.tsx
View file @
173375cb
...
@@ -46,18 +46,19 @@ export const DataLinksValueEditor: React.FC<FieldConfigEditorProps<DataLink[], D
...
@@ -46,18 +46,19 @@ export const DataLinksValueEditor: React.FC<FieldConfigEditorProps<DataLink[], D
return
(
return
(
<>
<>
{
value
.
map
((
l
,
i
)
=>
{
{
value
&&
return
(
value
.
map
((
l
,
i
)
=>
{
<
DataLinksListItem
return
(
key=
{
`${l.title}/${i}`
}
<
DataLinksListItem
index=
{
i
}
key=
{
`${l.title}/${i}`
}
link=
{
l
}
index=
{
i
}
onChange=
{
onDataLinkChange
}
link=
{
l
}
data=
{
context
.
data
}
onChange=
{
onDataLinkChange
}
suggestions=
{
context
.
getSuggestions
?
context
.
getSuggestions
()
:
[]
}
data=
{
context
.
data
}
/>
suggestions=
{
context
.
getSuggestions
?
context
.
getSuggestions
()
:
[]
}
);
/>
})
}
);
})
}
<
Forms
.
Button
size=
"sm"
icon=
"fa fa-plus"
onClick=
{
onDataLinkAdd
}
>
<
Forms
.
Button
size=
"sm"
icon=
"fa fa-plus"
onClick=
{
onDataLinkAdd
}
>
Create data link
Create data link
...
...
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