From 65991f82238980100a04dfab9207d78cfdbfd793 Mon Sep 17 00:00:00 2001 From: Brandon Martel Date: Thu, 29 Jun 2023 12:27:20 -0500 Subject: [PATCH] fix: LSDV-5355: Check before using column id in DM column creation --- src/stores/Tabs/store.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/stores/Tabs/store.js b/src/stores/Tabs/store.js index 0b711cc6..b74037c6 100644 --- a/src/stores/Tabs/store.js +++ b/src/stores/Tabs/store.js @@ -388,7 +388,12 @@ export const TabStore = types const parentPath = result.join("."); - result.push(column.id); + if (isDefined(column?.id)) { + result.push(column.id); + } else { + console.warn("Column or id is not defined", column); + console.warn("Columns", columns); + } const columnPath = result.join(".");