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

[plotterparameter] do not show first option for plotter when no selection was done

parent 14834d18
No related branches found
No related tags found
2 merge requests!29Fix issues for plotter editor and added unit tests,!23Fix issues plotter editor
...@@ -172,6 +172,13 @@ const mapStateToProps = (state, ownProps) => { ...@@ -172,6 +172,13 @@ const mapStateToProps = (state, ownProps) => {
plotters: Selectors.plotterGet(state), plotters: Selectors.plotterGet(state),
data: params[ownProps.index] || getValidObj(), data: params[ownProps.index] || getValidObj(),
}; };
if(!obj.data.contents.hasOwnProperty('plotter') ||
obj.data.contents.plotters === "")
{
obj.plotters.unshift({name: "-- 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