Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
nni
Commits
bcddacba
Unverified
Commit
bcddacba
authored
Oct 21, 2020
by
Yuge Zhang
Committed by
GitHub
Oct 21, 2020
Browse files
Fix bug when expanding rows not on the first page (#3006)
parent
5eec7ea5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/webui/src/components/trial-detail/TableList.tsx
src/webui/src/components/trial-detail/TableList.tsx
+4
-3
No files found.
src/webui/src/components/trial-detail/TableList.tsx
View file @
bcddacba
...
@@ -249,7 +249,7 @@ class TableList extends React.Component<TableListProps, TableListState> {
...
@@ -249,7 +249,7 @@ class TableList extends React.Component<TableListProps, TableListState> {
{
{
key
:
'
_expand
'
,
key
:
'
_expand
'
,
name
:
''
,
name
:
''
,
onRender
:
(
item
,
index
):
any
=>
{
onRender
:
(
item
):
any
=>
{
return
(
return
(
<
Icon
<
Icon
aria
-
hidden
=
{
true
}
aria
-
hidden
=
{
true
}
...
@@ -269,8 +269,9 @@ class TableList extends React.Component<TableListProps, TableListState> {
...
@@ -269,8 +269,9 @@ class TableList extends React.Component<TableListProps, TableListState> {
}
else
{
}
else
{
this
.
_expandedTrialIds
.
delete
(
newItem
.
id
);
this
.
_expandedTrialIds
.
delete
(
newItem
.
id
);
}
}
const
newItems
=
[...
this
.
state
.
displayedItems
];
const
newItems
=
this
.
state
.
displayedItems
.
map
(
item
=>
newItems
[
index
as
number
]
=
newItem
;
item
.
id
===
newItem
.
id
?
newItem
:
item
);
this
.
setState
({
this
.
setState
({
displayedItems
:
newItems
displayedItems
:
newItems
});
});
...
...
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