@contentful/experiences-core 1.30.5-prerelease-20250214T1504-9ac7f25.0 → 1.30.5-prerelease-20250214T1620-fc2ab3b.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/utils/breakpoints.d.ts +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -2521,7 +2521,7 @@ const getActiveBreakpointIndex = (breakpoints, mediaQueryMatches, fallbackBreakp
|
|
|
2521
2521
|
id,
|
|
2522
2522
|
index,
|
|
2523
2523
|
// The fallback breakpoint with wildcard query will always match
|
|
2524
|
-
isMatch: mediaQueryMatches[id] ?? index === fallbackBreakpointIndex,
|
|
2524
|
+
isMatch: mediaQueryMatches?.[id] ?? index === fallbackBreakpointIndex,
|
|
2525
2525
|
}));
|
|
2526
2526
|
// Find the last breakpoint in the list that matches (desktop-first: the narrowest one)
|
|
2527
2527
|
const mostSpecificIndex = findLast(breakpointsWithMatches, ({ isMatch }) => isMatch)?.index;
|