@sprintup-cms/sdk 1.9.3 → 1.9.4
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/client.cjs +1 -1
- package/dist/client.cjs.map +1 -1
- package/dist/client.js +1 -1
- package/dist/client.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/next/index.cjs +1 -1
- package/dist/next/index.cjs.map +1 -1
- package/dist/next/index.js +1 -1
- package/dist/next/index.js.map +1 -1
- package/package.json +1 -1
package/dist/next/index.js
CHANGED
|
@@ -294,7 +294,7 @@ function createCMSClient(options) {
|
|
|
294
294
|
if (!res.ok) return { navigation: null, footer: null, navItems: [] };
|
|
295
295
|
const json = await res.json();
|
|
296
296
|
const navigation = json.data?.navigation ?? null;
|
|
297
|
-
const rawItems = navigation?.
|
|
297
|
+
const rawItems = navigation?.sectionData?.items ?? navigation?.blocks?.[0]?.content?.items ?? [];
|
|
298
298
|
return {
|
|
299
299
|
navigation,
|
|
300
300
|
footer: json.data?.footer ?? null,
|