feat: open FSSHTTP OneNote sections
This commit is contained in:
@@ -83,14 +83,14 @@ export function buildSectionContentModel(
|
||||
series,
|
||||
PROPERTY.ChildGraphSpaceElementNodes
|
||||
);
|
||||
for (const pageSpaceId of pageSpaceIds) {
|
||||
for (const pageSpaceReference of pageSpaceIds) {
|
||||
context.currentPage = undefined;
|
||||
const pageSpace = store.objectSpaces.get(exGuidKey(pageSpaceId));
|
||||
const pageSpace = store.objectSpaces.get(pageSpaceReference.key);
|
||||
if (!pageSpace) {
|
||||
addDiagnostic(
|
||||
context,
|
||||
'MISSING_PAGE_SPACE',
|
||||
`Page object space ${exGuidKey(pageSpaceId)} is missing`,
|
||||
`Page object space ${pageSpaceReference.key} is missing`,
|
||||
'PageSeriesNode'
|
||||
);
|
||||
continue;
|
||||
@@ -111,7 +111,7 @@ export function buildSectionContentModel(
|
||||
addDiagnostic(
|
||||
context,
|
||||
'PAGE_PARSE_FAILED',
|
||||
`Could not parse page ${exGuidKey(pageSpaceId)}: ${error instanceof Error ? error.message : String(error)}`,
|
||||
`Could not parse page ${pageSpaceReference.key}: ${error instanceof Error ? error.message : String(error)}`,
|
||||
'Page',
|
||||
'error'
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user