chore: Add comment

This commit is contained in:
grafakus
2025-11-18 15:04:44 +01:00
parent 2d17de2395
commit 6b7fac65b1
@@ -28,7 +28,7 @@ VariableValuesPreview.displayName = 'VariableValuesPreview';
function VariableValuesWithPropsPreview({ options }: { options: VariableValueOption[] }) {
const styles = useStyles2(getStyles);
const data = options.map((o) => ({ label: String(o.label), value: String(o.value), ...o.properties }));
// the first item in data may be the "All" option which does not have any extra properties, so we try the 2nd item to determine the column names
// the first item in data may be the "All" option, which does not have any extra properties, so we try the 2nd item to determine the column names
const columns = Object.keys(data[1] || data[0]).map((id) => ({ id, header: id, sortType: 'alphanumeric' as const }));
return (