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
......@@ -172,6 +172,13 @@ const mapStateToProps = (state, ownProps) => {
plotters: Selectors.plotterGet(state),
data: params[ownProps.index] || getValidObj(),
};
if(!obj.data.contents.hasOwnProperty('plotter') ||
obj.data.contents.plotters === "")
{
obj.plotters.unshift({name: "-- select an option --"})
};
return obj;
};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment