chore: Add comment
This commit is contained in:
+1
-1
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user