Fix a crash in compute-unused-entities (#22549)

This commit is contained in:
karwosts 2024-10-26 13:17:20 -07:00 committed by GitHub
parent 2daaa1cb9c
commit fd01302d9a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -26,6 +26,9 @@ const addFromAction = (entities: Set<string>, actionConfig: ActionConfig) => {
};
const addEntityId = (entities: Set<string>, entity) => {
if (!entity) {
return;
}
if (typeof entity === "string") {
entities.add(entity);
return;