Skip to content
Snippets Groups Projects
Commit c79844c8 authored by Flavio TARSETTI's avatar Flavio TARSETTI
Browse files

[js][plotter] Fix do not show first option for dataformat when no selection was done. Closes #154

parent 2e5a1987
No related branches found
No related tags found
No related merge requests found
Pipeline #23910 failed
...@@ -257,6 +257,12 @@ const mapStateToProps = (state, ownProps) => { ...@@ -257,6 +257,12 @@ const mapStateToProps = (state, ownProps) => {
plotDfNames: Selectors.dataformatGet(state).map(df => df.name).filter(df => df.startsWith('plot/')), plotDfNames: Selectors.dataformatGet(state).map(df => df.name).filter(df => df.startsWith('plot/')),
data: plotters[ownProps.index] || getValidObj(), data: plotters[ownProps.index] || getValidObj(),
}; };
if(obj.data.contents.dataformat === "")
{
obj.plotDfNames.unshift("-- select an option --")
};
return obj; return obj;
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment