forked from potsda.mn/mobilizon
fix(front): avoid crashing if we don't have configuration data in time when in guard
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
da70427e32
commit
7916261c5c
|
@ -12,6 +12,7 @@ export const beforeRegisterGuard: NavigationGuard = async (to, from, next) => {
|
|||
);
|
||||
|
||||
onResult(({ data }) => {
|
||||
if (!data) return next();
|
||||
const { config } = data;
|
||||
|
||||
if (!config.registrationsOpen && !config.registrationsAllowlist) {
|
||||
|
|
Loading…
Reference in a new issue