Skip to content

Commit

Permalink
Tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
CarsonF committed Dec 5, 2024
1 parent 06e463a commit 7fbd735
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ export class PnpExtractionResultLanguageEngagementConnectionResolver {
@Loader(() => PnpExtractionResultLoader)
loader: LoaderOf<PnpExtractionResultLoader>,
): Promise<PnpPlanningExtractionResult | null> {
const fileId = engagement.pnp.value;
if (!fileId) {
const file = engagement.pnp.value;
if (!file) {
return null;
}
const { result } = await loader.load(fileId.id);
const { result } = await loader.load(file.id);
return result;
}
}

0 comments on commit 7fbd735

Please sign in to comment.