We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20e0843 commit 583031dCopy full SHA for 583031d
1 file changed
hwproj.front/src/components/Courses/StudentStats.tsx
@@ -47,7 +47,9 @@ class StudentStats extends React.Component<IStudentStatsProps, IStudentStatsStat
47
48
//TODO: throttling
49
private handleGoogleDocUrlChange = async (value: string) => {
50
- const titles = await apiSingleton.statisticsApi.apiStatisticsGetSheetTitlesPost({url: value})
+ const titles = value === ""
51
+ ? undefined
52
+ : await apiSingleton.statisticsApi.apiStatisticsGetSheetTitlesPost({url: value})
53
this.setState({googleDocUrl: value, sheetTitles: titles});
54
}
55
0 commit comments