From 916a7983d80393a8e35887515701c7d3f4418ac4 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Thu, 15 Aug 2024 11:38:11 +0100 Subject: [PATCH] Fix potential undefined reference --- packages/client/src/utils/grid.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/utils/grid.js b/packages/client/src/utils/grid.js index 805fb429ba..388921cfb7 100644 --- a/packages/client/src/utils/grid.js +++ b/packages/client/src/utils/grid.js @@ -49,7 +49,7 @@ export const getGridVar = (device, param) => `--grid-${device}-${param}` // Determines whether a JS event originated from immediately within a grid export const isGridEvent = e => { return ( - e.target.dataset.indicator === "true" || + e.target.dataset?.indicator === "true" || e.target .closest?.(".component") ?.parentNode.closest(".component")