Skip to content

Commit 583031d

Browse files
committed
wip
1 parent 20e0843 commit 583031d

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
@@ -47,7 +47,9 @@ class StudentStats extends React.Component<IStudentStatsProps, IStudentStatsStat
4747

4848
//TODO: throttling
4949
private handleGoogleDocUrlChange = async (value: string) => {
50-
const titles = await apiSingleton.statisticsApi.apiStatisticsGetSheetTitlesPost({url: value})
50+
const titles = value === ""
51+
? undefined
52+
: await apiSingleton.statisticsApi.apiStatisticsGetSheetTitlesPost({url: value})
5153
this.setState({googleDocUrl: value, sheetTitles: titles});
5254
}
5355

0 commit comments

Comments
 (0)