We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4d4d5c commit 252e388Copy full SHA for 252e388
1 file changed
hwproj.front/src/components/Courses/StudentStats.tsx
@@ -31,7 +31,9 @@ class StudentStats extends React.Component<IStudentStatsProps, IStudentStatsStat
31
32
//TODO: throttling
33
private handleGoogleDocUrlChange = async (value: string) => {
34
- const titles = await apiSingleton.statisticsApi.apiStatisticsGetSheetTitlesPost({url: value})
+ const titles = value === ""
35
+ ? undefined
36
+ : await apiSingleton.statisticsApi.apiStatisticsGetSheetTitlesPost({url: value})
37
this.setState({googleDocUrl: value, sheetTitles: titles});
38
}
39
0 commit comments