Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
beat.editor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
11
Issues
11
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
beat
beat.editor
Commits
1b0b348a
Commit
1b0b348a
authored
Jul 24, 2018
by
Jaden DIEFENBAUGH
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[js][exp] fix removed "ownProps.data" prop being used
parent
b4d48da0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
conda/js/src/components/experiment/ExperimentEditor.jsx
conda/js/src/components/experiment/ExperimentEditor.jsx
+4
-3
No files found.
conda/js/src/components/experiment/ExperimentEditor.jsx
View file @
1b0b348a
...
...
@@ -1269,7 +1269,9 @@ export class ExperimentEditor extends React.Component<Props, State> {
}
const
mapStateToProps
=
(
state
,
ownProps
)
=>
{
const
tcName
=
ownProps
.
data
.
name
.
split
(
'
/
'
).
slice
(
1
,
4
).
join
(
'
/
'
);
const
exps
=
Selectors
.
experimentGet
(
state
);
const
data
=
exps
[
ownProps
.
index
]
||
undefined
;
const
tcName
=
data
?
data
.
name
.
split
(
'
/
'
).
slice
(
1
,
4
).
join
(
'
/
'
)
:
''
;
const
tc
=
Selectors
.
toolchainGet
(
state
).
find
(
t
=>
t
.
name
===
tcName
)
||
{
name
:
''
,
contents
:
{
...
...
@@ -1278,13 +1280,12 @@ const mapStateToProps = (state, ownProps) => {
datasets
:
[],
}
};
const
exps
=
Selectors
.
experimentGet
(
state
);
const
normalBlocks
=
Selectors
.
normalBlocks
(
state
);
const
analyzerBlocks
=
Selectors
.
analyzerBlocks
(
state
);
const
obj
=
{
experiments
:
exps
,
data
:
exps
[
ownProps
.
index
]
||
getValidObj
({
name
:
''
,
contents
:
{}},
tc
,
[
normalBlocks
,
...
analyzerBlocks
]),
data
:
data
||
getValidObj
({
name
:
''
,
contents
:
{}},
tc
,
[
normalBlocks
,
...
analyzerBlocks
]),
// algorithms for normal blocks
normalBlocks
,
// algorithms for analyzer blocks
...
...
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