Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
e895aa15
Commit
e895aa15
authored
Jun 07, 2021
by
filip mertens
Committed by
joseph izang
Aug 09, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix logger bug
parent
5d86e192
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
+18
-3
txLogger.js
apps/remix-ide/src/app/ui/txLogger.js
+18
-3
No files found.
apps/remix-ide/src/app/ui/txLogger.js
View file @
e895aa15
...
@@ -354,6 +354,17 @@ module.exports = TxLogger
...
@@ -354,6 +354,17 @@ module.exports = TxLogger
// helpers
// helpers
function
isDescendant
(
parent
,
child
)
{
var
node
=
child
.
parentNode
while
(
node
!=
null
)
{
if
(
node
===
parent
)
{
return
true
}
node
=
node
.
parentNode
}
return
false
}
function
txDetails
(
e
,
tx
,
data
,
obj
)
{
function
txDetails
(
e
,
tx
,
data
,
obj
)
{
const
from
=
obj
.
from
const
from
=
obj
.
from
const
to
=
obj
.
to
const
to
=
obj
.
to
...
@@ -368,9 +379,13 @@ function txDetails (e, tx, data, obj) {
...
@@ -368,9 +379,13 @@ function txDetails (e, tx, data, obj) {
}
else
break
}
else
break
}
}
let
table
=
blockElement
.
querySelector
(
`#
${
tx
.
id
}
[class^="txTable"]`
)
const
tables
=
blockElement
.
querySelectorAll
(
`#
${
tx
.
id
}
[class^="txTable"]`
)
const
log
=
blockElement
.
querySelector
(
`#
${
tx
.
id
}
[class^='log']`
)
const
logs
=
blockElement
.
querySelectorAll
(
`#
${
tx
.
id
}
[class^='log']`
)
const
arrow
=
blockElement
.
querySelector
(
`#
${
tx
.
id
}
[class^='arrow']`
)
const
arrows
=
blockElement
.
querySelectorAll
(
`#
${
tx
.
id
}
[class^='arrow']`
)
let
table
=
[...
tables
].
filter
((
t
)
=>
isDescendant
(
tx
,
t
))[
0
]
const
log
=
[...
logs
].
filter
((
t
)
=>
isDescendant
(
tx
,
t
))[
0
]
const
arrow
=
[...
arrows
].
filter
((
t
)
=>
isDescendant
(
tx
,
t
))[
0
]
if
(
table
&&
table
.
parentNode
)
{
if
(
table
&&
table
.
parentNode
)
{
tx
.
removeChild
(
table
)
tx
.
removeChild
(
table
)
...
...
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