We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 160ae3d commit cb9a153Copy full SHA for cb9a153
packages/gitbook/src/app/(space)/fetch.ts
@@ -200,18 +200,18 @@ async function fetchParentSite(args: {
200
getSiteSpaces({ organizationId, siteId, siteShareKey }),
201
]);
202
203
- const spaces: Record<string, Space> = {};
+ const spaces: Array<Space> = [];
204
siteSpaces.forEach((siteSpace) => {
205
- spaces[siteSpace.space.id] = {
+ spaces.push({
206
...siteSpace.space,
207
urls: {
208
...siteSpace.space.urls,
209
published: siteSpace.urls.published,
210
},
211
- };
+ });
212
});
213
214
- return { parent: site, spaces: Object.values(spaces) };
+ return { parent: site, spaces };
215
}
216
217
/**
0 commit comments