Skip to content
Snippets Groups Projects
Commit 72608a5c 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 eae790f2
No related branches found
No related tags found
2 merge requests!29Fix issues for plotter editor and added unit tests,!23Fix issues plotter editor
Pipeline #24209 failed
......@@ -257,6 +257,12 @@ const mapStateToProps = (state, ownProps) => {
plotDfNames: Selectors.dataformatGet(state).map(df => df.name).filter(df => df.startsWith('plot/')),
data: plotters[ownProps.index] || getValidObj(),
};
if(obj.data.contents.dataformat === "")
{
obj.plotDfNames.unshift("-- select an option --")
};
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