Skip to content
Snippets Groups Projects
Commit 62163104 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 926f9dd0
No related branches found
No related tags found
No related merge requests found
Pipeline #23925 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