cc: Set island mode in `Main.tsx`'s constructor

`Main.tsx`'s `updateStatus()` was being called every 10 seconds,
which meant that `islandMode` was updated every 10 seconds.
If you were on the configuration page, and you refreshed the page
at the right moment (as soon as/just before `updateStatus()`
was being called), the config tabs showed were correct according to
the mode. If you refreshed at the wrong moment, you would get the
default tabs i.e. the tabs shown for the advanced mode (see
`ConfigurePage.js`'s `getSectionsOrder()`).
This commit is contained in:
Shreya 2021-07-21 16:47:34 +05:30 committed by Mike Salvatore
parent 64787faf77
commit 79be5d5a22
1 changed files with 1 additions and 0 deletions

View File

@ -70,6 +70,7 @@ class AppComponent extends AuthComponent {
noAuthLoginAttempted: undefined
};
this.interval = undefined;
this.setMode();
}
updateStatus = () => {