mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
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:
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]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user