Skip to content

Commit

Permalink
fix: request
Browse files Browse the repository at this point in the history
  • Loading branch information
KazariEX committed Dec 31, 2024
1 parent 011b700 commit 1906a08
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/typescript-plugin/lib/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,7 @@ export async function getComponentProps(fileName: string, componentName: string)
if (!server) {
return;
}
const componentAndProps = server.componentNamesAndProps.get(fileName);
if (!componentAndProps) {
return;
}
return componentAndProps[componentName];
return await server.getComponentProps(fileName, componentName);
}

export const getComponentEvents = createRequest<
Expand Down

0 comments on commit 1906a08

Please sign in to comment.