Skip to content

Commit

Permalink
Update js/core/src/registry.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Bleigh <bleigh@google.com>
  • Loading branch information
pavelgj and mbleigh authored Jan 26, 2025
1 parent e4c45a5 commit 6da5683
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/core/src/registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@ export class Registry {
async listActions(): Promise<ActionsRecord> {
await this.initializeAllPlugins();
const actions: Record<string, Action<z.ZodTypeAny, z.ZodTypeAny>> = {};
for (let [key, action] of Object.entries(this.actionsById)) {
await Promise.all(Object.entries(this.actionsById).map(async ([key,action]) => {
actions[key] = await action;
}
});
return {
...(await this.parent?.listActions()),
...actions,
Expand Down

0 comments on commit 6da5683

Please sign in to comment.