fix edge case with plugin without a name

Signed-off-by: splatter <splatterxl@outlook.ie>
This commit is contained in:
duke dennis 2025-02-24 01:06:27 +00:00
parent c4d7b98e72
commit b8f77887ac
Signed by: duke
GPG key ID: A069D884579D2915

View file

@ -71,7 +71,7 @@ const LOGO_NO_ANSI = `\
// CCCCCCC ███████████████████████████
// ```;
const isApiPlugin = (plugin: Plugin) => plugin.name.endsWith("API") || plugin.required;
const isApiPlugin = (plugin: Plugin) => plugin.name?.endsWith("API") || plugin.required;
function getEnabledPlugins() {
const counters = {