We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0962356 commit e4095f3Copy full SHA for e4095f3
app/components/course-page/course-stage-step/community-solution-card/github-file-actions.ts
@@ -62,8 +62,10 @@ export default class GithubFileActionsComponent extends Component<Signature> {
62
} else {
63
const exportRecord = await this.createExport();
64
65
- const githubUrl = exportRecord?.githubUrlForFile(this.args.filename);
66
- window.open(githubUrl, '_blank', 'noopener,noreferrer');
+ if (exportRecord) {
+ const githubUrl = exportRecord.githubUrlForFile(this.args.filename);
67
+ window.open(githubUrl, '_blank', 'noopener,noreferrer');
68
+ }
69
}
70
71
0 commit comments