Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
realm_playground: Iterate over `playgrounds_data` directly.
Lalitbd6184305a77
diff --git a/web/src/realm_playground.ts b/web/src/realm_playground.tsindex 88dd2eaf8f4..d6ace3bb3c6 100644--- a/web/src/realm_playground.ts+++ b/web/src/realm_playground.ts@@ -19,7 +19,7 @@ const map_pygments_pretty_name_to_aliases = new Map<string, string[]>();export function update_playgrounds(playgrounds_data: RealmPlayground[]): void {map_language_to_playground_info.clear();- for (const data of Object.values(playgrounds_data)) {+ for (const data of playgrounds_data) {const element_to_push: Omit<RealmPlayground, "pygments_language"> = {id: data.id,name: data.name,