From 48775b8397872c420f51ef71d52fdad2dadf13ab Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Thu, 15 Aug 2024 11:44:31 +0100 Subject: [PATCH] Replace erroneous falsey comparisons with nullish comparisons --- packages/client/src/utils/grid.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/client/src/utils/grid.js b/packages/client/src/utils/grid.js index 388921cfb7..1727b904ca 100644 --- a/packages/client/src/utils/grid.js +++ b/packages/client/src/utils/grid.js @@ -118,8 +118,8 @@ export const gridLayout = (node, metadata) => { for (let param of Object.values(GridParams)) { let dVar = getGridVar(Devices.Desktop, param) let mVar = getGridVar(Devices.Mobile, param) - vars[dVar] = styles[dVar] || styles[mVar] || defaults[param] - vars[mVar] = styles[mVar] || styles[dVar] || defaults[param] + vars[dVar] = styles[dVar] ?? styles[mVar] ?? defaults[param] + vars[mVar] = styles[mVar] ?? styles[dVar] ?? defaults[param] } // Apply some overrides depending on component state