fix: omit frameworks with no enabled build runtimes

After filtering by _APP_SITES_RUNTIMES, drop frameworks whose runtime
list is empty so the Console does not offer unusable options.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Chirag AggarwalandCursor committed 2026-07-10 16:54:46 +05:30
1 parent 43eb0d1092
commit d0d1ab0338
1 file changed
+5
@@ -65,6 +65,11 @@ class XList extends Base
$framework['runtimes'],
fn ($runtime) => \in_array($runtime, $allowList, true)
));
// Drop frameworks that have no enabled build runtimes left.
if (empty($frameworks[$key]['runtimes'])) {
unset($frameworks[$key]);
}
}
}