From d7ab7c6ec9c383ff5d132317388169ed7e4c8f82 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 13 Oct 2020 08:12:03 +0100 Subject: [PATCH] Fix grid crash when there are no related rows in a link field --- packages/standard-components/src/DataGrid/customRenderer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/standard-components/src/DataGrid/customRenderer.js b/packages/standard-components/src/DataGrid/customRenderer.js index 0fe60e0673..5d47343846 100644 --- a/packages/standard-components/src/DataGrid/customRenderer.js +++ b/packages/standard-components/src/DataGrid/customRenderer.js @@ -110,7 +110,7 @@ function linkedRecordRenderer(constraints, editable) { container.style.placeItems = "center" container.style.height = "100%" - container.innerText = params.value.length || 0 + container.innerText = params.value ? params.value.length : 0 return container }