Skip to content

Commit 252e388

Browse files
committed
wip
1 parent a4d4d5c commit 252e388

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

hwproj.front/src/components/Courses/StudentStats.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ class StudentStats extends React.Component<IStudentStatsProps, IStudentStatsStat
3131

3232
//TODO: throttling
3333
private handleGoogleDocUrlChange = async (value: string) => {
34-
const titles = await apiSingleton.statisticsApi.apiStatisticsGetSheetTitlesPost({url: value})
34+
const titles = value === ""
35+
? undefined
36+
: await apiSingleton.statisticsApi.apiStatisticsGetSheetTitlesPost({url: value})
3537
this.setState({googleDocUrl: value, sheetTitles: titles});
3638
}
3739

0 commit comments

Comments
 (0)