Skip to content

Commit

Permalink
fix: fix aiElement bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mlikasam-askui committed Jun 21, 2024
1 parent 65f11d3 commit 7997411
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/askui-nodejs/src/execution/ui-control-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,9 @@ export class UiControlClient extends ApiCommands {
}

private async getAIElementsByNames(names: string[]): Promise<CustomElementJson[]> {
if (names.length === 0) {
return [];
}
// eslint-disable-next-line max-len
const workspaceAIElementCollection = await AIElementCollection.collectForWorkspaceId(this.workspaceId);
return workspaceAIElementCollection.getByNames(names);
Expand Down

0 comments on commit 7997411

Please sign in to comment.