fix: always reload course on ID change (#3969)
This commit is contained in:
parent
a7dcd8719b
commit
ecbeb4c6f5
1 changed files with 6 additions and 5 deletions
|
|
@ -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…
Add table
Reference in a new issue