Skip to content

Commit fa937e9

Browse files
committed
Response to first comments
1 parent f8286b8 commit fa937e9

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

modules/@apostrophecms/template/index.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1319,17 +1319,12 @@ module.exports = {
13191319

13201320
let widgetOptions = {};
13211321
if (manager && typeof manager.annotateWidgetForExternalFront === 'function') {
1322-
widgetOptions = await manager.annotateWidgetForExternalFront(
1323-
item, area
1324-
) || {};
1322+
widgetOptions = await manager.annotateWidgetForExternalFront() || {};
13251323
};
13261324
if (widgetOptions && Object.keys(widgetOptions).length > 0) {
13271325
item._options = widgetOptions;
13281326
}
13291327
}
1330-
},
1331-
annotateWidgetForExternalFront() {
1332-
return {};
13331328
}
13341329
};
13351330
}

modules/@apostrophecms/widget-type/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,12 @@ module.exports = {
449449
}
450450
return true;
451451
});
452+
},
453+
454+
annotateWidgetForExternalFront() {
455+
return {};
452456
}
457+
453458
};
454459
},
455460
extendMethods(self) {

0 commit comments

Comments
 (0)