1
0

Plugspace robustness improvement

This commit is contained in:
Zef Hemel 2022-07-11 13:51:04 +02:00
parent 3409a1215e
commit ac9c2696ec

View File

@ -29,9 +29,13 @@ export class PlugSpacePrimitives implements SpacePrimitives {
let allPages = new Set<PageMeta>();
for (let { plug, name, operation } of this.hook.spaceFunctions) {
if (operation === "listPages") {
try {
for (let pm of await plug.invoke(name, [])) {
allPages.add(pm);
}
} catch (e) {
console.error("Error listing pages", e);
}
}
}
let result = await this.wrapped.fetchPageList();