@bygghammar/cms-platform 0.30.0 → 0.30.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bygghammar/cms-platform",
3
- "version": "0.30.0",
3
+ "version": "0.30.1",
4
4
  "description": "Shared CMS platform: blocks, block types, i18n core, UI primitives and design-token contract used by every Bygghammar/Voyara site.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -116,7 +116,7 @@ export function BlocksLibraryView({ deps }: { deps: BlocksLibraryDeps }): ReactN
116
116
 
117
117
  const globalsMap = useMemo(() => {
118
118
  const m: Record<string, LibraryBlock[]> = {};
119
- for (const g of globals) m[g.key] = ((g.blocks ?? []) as LibraryBlock[]) ?? [];
119
+ for (const g of globals) m[g.key] = (g.blocks ?? []) as LibraryBlock[];
120
120
  return m;
121
121
  }, [globals]);
122
122