Skip to content

Commit efedff5

Browse files
committed
Fix events functions listing
1 parent 5cef3c1 commit efedff5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/generate-extensions-registry.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ const findAllRequiredBehaviorTypes = (
140140
* @returns {EventsFunctionInsideExtensionShortHeader}
141141
*/
142142
const formatEventFunctionInsideExtensionShortHeader = (eventFunction) => {
143-
// TODO: Empty fullname => remove.
144143
return {
145144
description: eventFunction.description,
146145
fullName: eventFunction.fullName,
@@ -196,7 +195,7 @@ const filterEventsBasedObjects = (objects) =>
196195
/** @param {Array<EventsFunction>} eventsFunctions */
197196
const filterEventsFunctions = (eventsFunctions) =>
198197
eventsFunctions.filter(
199-
(eventFunction) => !eventFunction.fullName || eventFunction.private
198+
(eventFunction) => eventFunction.fullName && !eventFunction.private
200199
);
201200

202201
(async () => {

0 commit comments

Comments
 (0)