refactor(plugin-data-spreadsheet-new): CB-666 check for column.label

This commit is contained in:
Naumov Alexey
2021-05-28 14:18:51 +03:00
parent 63283fc7d3
commit b282ec9d1f
@@ -100,8 +100,8 @@ export const TableColumnHeader: React.FC<HeaderRendererProps<any>> = observer(fu
</icon>
<name>{columnName}</name>
</shrink-container>
{sortable && column?.name && (
<OrderButton model={model} resultIndex={resultIndex} attribute={column.label || ''} />
{sortable && column?.label && (
<OrderButton model={model} resultIndex={resultIndex} attribute={column.label} />
)}
</table-header>
);