Fix message formatting for large binary fields in stringifyCellValue function

This commit is contained in:
Stela Augustinova
2026-04-01 10:55:47 +02:00
parent cf601c33c0
commit 8d16a30064
+1 -1
View File
@@ -430,7 +430,7 @@ export function stringifyCellValue(
if (value?.type === 'Buffer' && _isArray(value.data)) {
if (intent === 'gridCellIntent') {
return value.data.length > MAX_GRID_BINARY_SIZE
? { value: `(Field too large: ${formatByteSize(value.data.length)})`, gridStyle: 'nullCellStyle' }
? { value: `(Field too large, ${formatByteSize(value.data.length)})`, gridStyle: 'nullCellStyle' }
: { value: '0x' + arrayToHexString(value.data), gridStyle: 'valueCellStyle' };
}
}