fix: add value key based on selected tab to course settings widget to force refresh on navigate from finished activity (#4331)
This commit is contained in:
parent
ca8875f19b
commit
5e1f4f3123
1 changed files with 4 additions and 0 deletions
|
|
@ -290,6 +290,10 @@ class SpaceDetailsContent extends StatelessWidget {
|
|||
case SpaceSettingsTabs.course:
|
||||
return SingleChildScrollView(
|
||||
child: CourseSettings(
|
||||
// on redirect back to chat settings after completing activity,
|
||||
// course settings doesn't refresh activity details by default
|
||||
// the key forces a rebuild on this redirect
|
||||
key: ValueKey(controller.widget.activeTab),
|
||||
courseController,
|
||||
room: room,
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue