We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 312d9c6 commit b31bffaCopy full SHA for b31bffa
1 file changed
client/src/pages/System.jsx
@@ -41,12 +41,11 @@ const System = () => {
41
});
42
43
const tabChanged = name => {
44
+ //We need to force a refresh if the tab change is between the two Organization components
45
const refreshRequired = name !== currentTab && organizationTabs.includes(name) &&
46
organizationTabs.includes(currentTab);
- debugger;
47
setCurrentTab(name);
48
const path = encodeURIComponent(`/system/${name}`);
49
- //We need to force a refresh of the Organization component that is used twice
50
navigate(refreshRequired ? `/refresh-route/${path}` : path);
51
}
52
0 commit comments