ENCOA-228 Now when user navigates between modules the generation items persist. Reading, listening and writing added to level module
This commit is contained in:
@@ -38,7 +38,7 @@ const useSettingsState = <T extends SectionSettings>(
|
||||
if (Object.keys(pendingUpdatesRef.current).length > 0) {
|
||||
dispatch({
|
||||
type: 'UPDATE_SECTION_SETTINGS',
|
||||
payload: { sectionId, update: pendingUpdatesRef.current}
|
||||
payload: { sectionId, update: pendingUpdatesRef.current, module}
|
||||
});
|
||||
pendingUpdatesRef.current = {};
|
||||
}
|
||||
@@ -52,7 +52,7 @@ const useSettingsState = <T extends SectionSettings>(
|
||||
if (Object.keys(pendingUpdatesRef.current).length > 0) {
|
||||
dispatch({
|
||||
type: 'UPDATE_SECTION_SETTINGS',
|
||||
payload: {sectionId, update: pendingUpdatesRef.current}
|
||||
payload: {sectionId, update: pendingUpdatesRef.current, module}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user