Skip to content
Snippets Groups Projects
Commit 347aca15 authored by Marcos Pieras's avatar Marcos Pieras
Browse files

feat: correct init of x data

parent 3eecc93a
No related branches found
Tags v1.168.1
No related merge requests found
Pipeline #147843 passed
......@@ -121,7 +121,7 @@ const Vis1DSettings = ({ settings, graphMetadata, updateSettings }: Visualizatio
];
if (settings.xAxisLabel.name === '') {
updateSettings({ xAxisLabel: { name: newAttributeOptions[0].name, type: newAttributeOptions[0].type } });
updateSettings({ xAxisLabel: { name: newAttributeOptions[1].name, type: newAttributeOptions[1].type } });
// !TODO: instead of contain "datum" chekc type: if it is date
if (newAttributeOptions[0].name.includes('Datum')) {
......
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