fix: always reload course on ID change (#3969)

pull/2245/head
ggurdin 2 months ago committed by GitHub
parent a7dcd8719b
commit ecbeb4c6f5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -45,12 +45,13 @@ class CoursePlanController extends State<CoursePlanBuilder> {
}
Future<void> _loadCourse() async {
setState(() {
loading = false;
error = null;
course = null;
});
if (widget.courseId == null) {
setState(() {
loading = false;
error = null;
course = null;
});
return;
}

Loading…
Cancel
Save