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
Pipeline #24209 failed with stages
in 180 minutes and 5 seconds
......@@ -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;
};
......
Markdown is supported
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